Re: Referencing source of 3rd party library when debugging




> We're using Visual Studio .NET 2003. The project is c++, plain Win32,
> no MFC. We are using Redhats pthread implementation for Win32 as we
> ported over an app from Linux.
>
> When we debug we'd like to view such things as pthread_mutexs etc..
> however the source for this is available to the debugger.
>

Do you mean that you want to step through pthreads sources,
but the debugger does not step into them?

> How can I do this? I have the source code and tried referencing it in
> Tools->Options->Projects->VC++ Directories->Source but that appears to
> only be for intellisense.
>

Source path can be specified here:
Solution properties | Common Properties | Debug Source Files

Additionally, if you want to step into the sources of a library, the library itself
should be built with debug information. If it's a static library, it should be compiled
with /Zi or /Z7 option; a DLL should also be compiled with /Zi or /Z7 and
linked with /debug option.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]



.



Relevant Pages

  • Re: How to connect to children process
    ... Main problem is amount of manual operations required per debug cycle. ... connection to DLL with debugger takes sensible amount of time and manual ... Is the main problem that the debugger keeps symbols file loaded ... AFAIK that's how VS2003 debugger works, but WinDbg should usually ...
    (microsoft.public.vsnet.debugging)
  • Re: Need Help Debugging
    ... you should use straight and plain ADPlus.VBS from the debugger package. ... debug info loaded, etc... ... does that avoid using the stack ?!? ... which is our custom CRITICAL_SECTION class. ...
    (microsoft.public.win32.programmer.kernel)
  • gnome-settings-daemon crashed twice
    ... To debug your program, run it with the --sync command line ... backtrace from your debugger if you break on the gdk_x_errorfunction.) ...
    (GNOME)
  • Re: DesignBAIS/Dave Bryant
    ... As Tony says you can also "debug" your code in the DB app (browser ... form of tcl access and are able to enter the native debugger anyway. ... i could enter the debugger on their public internet site they would ... Not all Visage applications are deployed to Public internet sites. ...
    (comp.databases.pick)
  • Re: SUnit disappointment
    ... I always press the 'Debug' button in the SUnitBrowser when I'm ... For example when examining a failure in the debugger rather ... I'll often be able to fix the failure in my second ... > Equals verify: object printString with: 'test' ...
    (comp.lang.smalltalk.dolphin)

Loading