Re: Remote debugging?
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Jan 2007 11:12:51 -0800
"Jeff" <Jeff_nospam_for@xxxxxxxxxxxxx> wrote in message news:mJSdnUCkbv6uvADYnZ2dnUVZ8qugnZ2d@xxxxxxxxx
Hello
I have a remote client who is experiencing crashes in an MDI application I'm responsible for. I've tried to obtain as much information as possible in the form of data files, event logs and registry settings etc as well as user descriptions but I'm still unable to recreate the crashes locally.
Is there an easy way to modify the code so that it records every event that the application receives during a given remote session and then input these locally to my version of the app and have it go through the same session and hopefully encounter the same crash?
I was wondering about overiding CWinThread::Run() and serialising the messages at that level, but I don't think this will cover messages to dialogs and other windows that might have their own threads? Is there a straightforward way to do this sort of thing or maybe there's an existing commercial product I could use?
Perhaps even if there was an automated thing like that, you couldn't repro the crash because it is due to the OS setup on the machine it is crashing on.
I would highly recommend instead you have the user start drwtsn32.exe or drwatson.exe (in C:\windows\system32) and configure it do dump minidumps. Make sure you send the client a version of your app that has been built with debug info. You don't need to send the .pdb files but you do need to send the .exe/dll's with debug info so that Dr. Watson will record stack dumps with full symbolic info.
Then when the crash happens and the .dmp file is created, have your client send it to you, then load it into Visual Studio. It will present you with a callstack with full symbolic info, and the current values of global/local variables, just as if it had crashed on your own PC. This is really neat.
-- David
.
- Follow-Ups:
- Re: Remote debugging?
- From: Jeff
- Re: Remote debugging?
- References:
- Remote debugging?
- From: Jeff
- Remote debugging?
- Prev by Date: Re: VC++ Workspace kind of application
- Next by Date: Re: export static public member
- Previous by thread: Remote debugging?
- Next by thread: Re: Remote debugging?
- Index(es):
Relevant Pages
|