Dave Calkins
2008-01-28 19:13:47 UTC
Here's an issue for which I have a workaround, but am still curious as to
why the workaround is necessary. We're using Visual C++ 2005 (v8).
We're using a third party library for which we have the source. We build
the third party library from source in its directory structure and then copy
the resultant binaries to a different "installed" location. This
"installed" location is what gets used by our applications when linking and
compiling and contains all the headers and the built binaries.
Recently we needed to step into the third party library source to diagnose a
problem. In studio, with one of the application projects open, I opened one
of the source files in the third party library source dir and clicked the
margin to set a breakpoint. I then hit F5 to run with debugging.
When the app started the breakpoint turned to the hollow circle and the
mouse-over indicated that the breakpoint could not be set because symbols
were not loaded for the source file.
I opened the modules list, found the third party module and the window
indicated that the symbols, in fact, had been loaded.
Any ideas why I could not set the breakpoint? I also tried using WinDbg
directly and it wouldn't give me a source view after stepping into one of
the third party library function calls.
Here's the workaround. I ended up referencing the third party libraries at
their source directory location (where they were originally built) as
opposed to the "installed" location. No idea why this did it.
Any thoughts?
why the workaround is necessary. We're using Visual C++ 2005 (v8).
We're using a third party library for which we have the source. We build
the third party library from source in its directory structure and then copy
the resultant binaries to a different "installed" location. This
"installed" location is what gets used by our applications when linking and
compiling and contains all the headers and the built binaries.
Recently we needed to step into the third party library source to diagnose a
problem. In studio, with one of the application projects open, I opened one
of the source files in the third party library source dir and clicked the
margin to set a breakpoint. I then hit F5 to run with debugging.
When the app started the breakpoint turned to the hollow circle and the
mouse-over indicated that the breakpoint could not be set because symbols
were not loaded for the source file.
I opened the modules list, found the third party module and the window
indicated that the symbols, in fact, had been loaded.
Any ideas why I could not set the breakpoint? I also tried using WinDbg
directly and it wouldn't give me a source view after stepping into one of
the third party library function calls.
Here's the workaround. I ended up referencing the third party libraries at
their source directory location (where they were originally built) as
opposed to the "installed" location. No idea why this did it.
Any thoughts?