Groups | Blog | Home
all groups > visual c > april 2004 >

visual c : debugging


rjvink
4/29/2004 7:36:02 AM
hi

I am trying to debug a function thats in a library module. I would like to do this from the calling executable debug session (visual studio). I am running visual C/C++ 6, and the function is in a user created library. I have the source and project for both

Thanks
rjvink
4/29/2004 11:16:04 AM
I found the problem, I needed to point to the debug directory of the library I was trying to debug not the root of it

William DePalo [MVP VC++]
4/29/2004 12:02:48 PM
[quoted text, click to view]

The short answer is "just do it". :-)

Seriously what kind of library do you have? Is it a static library that is
linked with your executable or is it implemented as a DLL?

If the former then just put a break-point at the place in your executable's
source where you make the call. Then choose "Step into" from the Debug menu.
If on the other hand you have a DLL just set the Debug Properties (or
Settings if you use VC6.0) to specify the path to your executable.

Finally, if you don't want to run under the control of the debugger but
rather launch it a runtime, put a call to DebugBreak() in your source where
you'd like the debugger to attach.

Regards,
Will


li
4/29/2004 11:46:03 PM
AddThis Social Bookmark Button