One of my VS2008 Project can not run debug, however the output windows will trace out a message like this, “Binary was not build with debug information”, when I try run this project in debug mode.
The problem is, as the error message suggests, you have not built your project with debug information.
To fix this issue, all you need to do are:
- Goto Project->Properties
- Select “C/C++”, then “General”
- Make sure set the project configuration of “Debug information format” to “Program Database for edit and continue (/ZI)”
- “C/C++” –> “Optimization”
- Make sure set the project configuration of “Optimization” to “Disabled (/Od)”
- “C/C++” –> “Code Generation”
- Make sure set the project configuration of “Runtime library” to “Multi-Threaded Debug (/MTd)”
- “Linker” –> “Debugging”
- Make sure set the project configuration of “Generate Debug info” to “Yes (/DEBUG)”
If everying is confirmed or done, try rebuild your project, and run debug again, enjoy your debug.