I noticed that Agent crashes frequently when sending email. It shows an exception which I never saw on Winodws because Agent is rather stable. Now I want to take a look at it, but I need to know how I can debug a windows app running under wine.
Gerhard W. Gruber wrote:
I noticed that Agent crashes frequently when sending email. It shows an exception which I never saw on Winodws because Agent is rather stable. Now I want to take a look at it, but I need to know how I can debug a windows app running under wine.
I think the best way is with logfiles created with the --debugmsg argument to wine. You can invoke the program under the wine debugger by starting it with winedbg instead of wine, but I have not yet gotten much use out of that; log files are the way to go initially unless you know for sure the debugger is what you want. - Dan
On Fri, 14 Feb 2003 13:30:29 -0800, Dan Kegel dank@kegel.com wrote:
I think the best way is with logfiles created with the --debugmsg argument to wine. You can invoke the program under the wine debugger by starting it with winedbg instead of wine, but I have not yet gotten much use out of that; log files are the way to go initially unless you know for sure the debugger is what you want.
I need the debugger for usre. The problem is that agent throws an exception, but it does that internally so I have to see what's going on. I can try the logs first, though, but I'm intersted on how to do this anyway and sooner or later I will need this.
On Fri, 14 Feb 2003 21:42:50 +0100, you wrote:
I noticed that Agent crashes frequently when sending email. It shows an exception which I never saw on Winodws because Agent is rather stable.
Hmm, I use Agent every day. It does not crash frequently here, maybe once per month at the most. Neither can I remember it crashing when sending a mail. First rule of running agent stable is to use only builtin dll's. If you have any windows dll's then check this with --debugmsg +loaddll , no libraries should be loaded native.
Now I want to take a look at it, but I need to know how I can debug a windows app running under wine.
I would try to catch the crash in the debugger first. A backtrace (type bt) can give the first insight where the program crashes. If you didn't set up the debugger then check out http://www.winehq.com/Docs/wine-devel/dbg-config.shtml
Rein.