Debugging information for... cannot be found or does not match
[转载]Debugging information for… cannot be found or does not match
Error Msg:
Debugging information for “YourProject.exe” cannot be found or does not match. Binary was not built with debug information.
Resolution:
To enable debugging: 1) Goto Project->HelloWorld Properties Also when running your application use Ctrl+F5 to build and run it, this keeps the console window open long enough for you to see your output. (Debugging with VS2005) |
The debugging steps outlined above were helpful. However, for the current project I am working on, I had to make one additional change to get my program to debug properly. Here are the steps I took:
1) Open your Project Properties..
2) On the left, expand Configuration Properties.
3) Just beneath that, select “General” under Configuration Properties.
4) On the right, change “Debuggable Assembly” to “Runtime tracking and disable optimizations (/ASSEMBLYDEBUG)”
5) Click OK to save changes.
The option that allows you to generate a map file for your project may also have been necessary, so if all of the above fails to allow you to debug your application, try setting “Generate Map File” to “Yes”. Sorry I can\’t verify this further at this time.
more:
Tool->Options里Debugging->General把require source file to exactly match the original version去掉