Debug symbols not found for static lib in Visual C++ 2008

I'm trying to debug a static library using MFC in Visual Studio 2008. When running the project in debug mode the breakpoints turn into circles and hovering over them produces the message "The breakpoint will not currently be hit. No symbols have been loaded for this document"

The project configuration is set to "Debug", and I have tried cleaning and rebuilding the solution, but this did not solve the problem.

In the project's debug folder, there is a vc90.pdb file, which is the file containing the debug information. When running project in debug mode I tried debug->windows->modules, right clicked on the exe file that was using the lib, and added the vc90.pdb file to the symbol settings. This still didn't work.

Has anyone had this problem, and any ideas of how to fix this?

Thanks, Alex


Alex - I just compiled a sample DLL/Exe from MSFT - DLLScreenCap. Worked fine, I was able to step into the DLL code ok. You should also be able to set a breakpoint in the DLL source, and it should hit that when called from the .exe. Does that work?

When I've had this kind of problem in the past - it usually turned out the IDE was loading an old version of the DLL, so I would test that by making some changing some feature in the DLL, and be certain that change shows up when you run the code. Just reality check to be sure the right code was getting loaded.

链接地址: http://www.djcxy.com/p/95384.html

上一篇: 调试.DMP时,Visual Studio 2008不加载符号

下一篇: 在Visual C ++ 2008中找不到静态库的调试符号