Windows DLL with C++ interface

Joachim Durchholz joachim at hact.de
Thu Feb 13 22:30:24 CET 2003


Denys Duchier wrote:
> If this were Linux, I would simply attach gdb (the gdb debugger) to
> the running process and ask for a backtrace to see where things are
> getting stuck.  I don't know if this is possible on Windows.

If you have MSVC, you simply fire up the IDE and do "Debug - Attach to 
Process" (or something similar). You'll get a list of processes, and the 
debugger will attach to it. (Detaching the debugger is impossible under 
Windows - terminating the debug session will terminate the process being 
debugged. Don't ask me why.)

Single-stepping assembly code isn't going to get you much, but you'll 
see a stack trace. And you can switch between system threads, so if the 
stack trace doesn't tell you much, switch to a different thread and look 
there. (Switching threads is a bit cumbersome.)

HTH
Joachim
--
This is not an official statement from my employer.

-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs at mozart-oz.org.





More information about the mozart-users mailing list