When I was about to debug C++ program in VS2005,the program didn't stop at the breakpoints.
The VS said"No symbols are loaded for any call stack frame. The source code cannot be displayed".
What can I do?
When I was about to debug C++ program in VS2005,the program didn't stop at the breakpoints.
The VS said"No symbols are loaded for any call stack frame. The source code cannot be displayed".
What can I do?
For whatever reason you don't have the right symbols (.pdb files) in the symbol path. This could be for several reasons:
1) Your binary was compiled more recently than the .pdb files. Try recompiling everything.
2) You are trying to debug a .dll and forgot to copy the .pdb files. Copy those files too.
It's also possible that your code isn't being executed like you think.
I've experienced this problem (using c# in VS) when trying to debug my unit tests.
You can add the following code that will launch a new instance of the debugger that will allow you yo step through your code like normal:
I have solved this problem in WP7 by doing this:
I hope it will help you!
A few steps to try:
Complete clean and rebuild, making sure .pdb's get created?
Just to add another possibility not yet covered by MainID:
When debugging, I actually started some program that would call into the classes I wanted to debug (it's some sort of add on). The called program is partly written in unmanaged C++. When I checked "Enable unmanaged code debugging" the error would come up (and subsequently the program crashed) because the program did not have any debug information.