debugging

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
rj
 
rjvink said:
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.

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
 
rjvink said:
Thanks for your response Will.

You are welcome.
It is a static library that is linked, I already tried doing
what you suggested but for some reason it will not
'step into' the routine. It does step into any of the
C/C++ runtime library functions very nicely.

Are you sure that the static library built with debugging information
acceptable to the IDE, i.e. have you recompiled the static library with the
same tool you use for the executable?

Regards,
Will
 
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
 
Back
Top