Message-ID: <3768116B.2707FFD7@tek.com> From: Doug Stevens X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.ms-windows.programmer.win32,comp.os.msdos.djgpp Subject: Re: MSVC IDE - Where's the debugger? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 40 Date: Wed, 16 Jun 1999 21:05:11 GMT NNTP-Posting-Host: 192.65.17.16 X-Complaints-To: postmaster AT tek DOT com X-Trace: news-west.eli.net 929567111 192.65.17.16 (Wed, 16 Jun 1999 15:05:11 MDT) NNTP-Posting-Date: Wed, 16 Jun 1999 15:05:11 MDT Organization: Tektronix NewsReader Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com If MsDev is your system debugger, when the program crashes, MsDev will fire up and indicate what function the crash occurred in, and what the call stack looked like. In the registry key "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/AeDebug", check the registry value "Debugger". It usually fires up Dr. Watson; edit it (if it hasn't already been modified by installing msdev) to C:\ProgramFiles\DevStudio\SharedIDE\BIN\msdev.exe -p %ld -e %ld (or whereever you have MsDev installed). Once this is done, you can also right-click on processes in the task manager, and select "Debug"; the debugger will then attach to the running process (I use this for debugging services). Sometimes the debugger will ask you for the location of the source code when you attach to running processes; if the source code is not mounted with the same drive letter that it had when the app was compiled, you won't be able to do source-level debugging (I've never figured out why MS doesn't save the absolute path, rather than the path with the drive letter). Paul Richards wrote: > Hi, > I'm moving over from DJGPP with Rhide to MS VC++ 6 and it's IDE. In > Rhide if your program crashed it tries to figure out which function it > was in when it crashed. How do I do this in MSVC? Not that my programs > ever crash though... > -- > Paul Richards (AKA Pauldoo) > mailto:paul AT dunvegan1 DOT demon DOT co DOT uk > http://www.dunvegan1.demon.co.uk/paul/info.html -- Please remove the ? in my address to reply.