首页 > 转载文章 > [转载]VS2005无法进行DEBUG:Binary was not build with debug information.

[转载]VS2005无法进行DEBUG:Binary was not build with debug information.

2011年6月24日  8,442 views 发表评论 阅读评论

今天遇到了VS2005无法进行DEBUG:Binary was not build with debug information.的问题,无法对编写的C++程序调试,每次调试都会提示No Debugging Information。在网上查找相关资料后得以解决,以下为参考文章全文,格式略作修改。

转载自smilelance

Its not an installation issue, the problem is, as the error message suggests, that you have not built your project with debug information.

To do this:

  1. Goto Project->Properties
  2. Make sure “Configuration” at the top is “Debug”
  3. On the left, select “C/C++”, then “General”
  4. On the right, change “Debug information format” to “Program Database for edit and continue (/ZI)”
  5. On the left, Select “Optimization”
  6. On the right, Change “Optimization” to “Disabled (/Od)”
  7. On the left, select “Code Generation”
  8. On the right, change “Runtime library” to “Multi-Threaded Debug (/MTd)”
  9. On the left, expand “Linker” and select “Debugging”
  10. On the right, change “Generate Debug info” to “Yes (/DEBUG)”
  11. Rebuild your project.


声明:未作说明,则本文为代码至上原创。转载务必注明出处
注意:转载须保留全文,如需修改请 联系作者
本文永久地址:http://codeup.org/archives/435


我要分享到:

新浪微博 腾讯微博 人人 Twitter Facebook 网易微博 鲜果 Follow5
分类: 转载文章 标签: ,