VC调试模式下does not contain debug information. Press OK to Continue

转载:http://ustcfxx.iteye.com/blog/760016

找了一些资料,常规的解决办法是:

检查一:

 

  1. Open your project (or workspace...)
  2. From menu bar: Build->Set Active Configuration... - make sure the Win32 Debug option is selected.
  3. From menu bar: Build->Rebuild All
检查二:

 

  1. 在project->setting->link->category:Debug中选中Debug Info,选中Microsoft format 。
  2. 在project->setting->c/c++->category:General中,Debuginfo选择 program database或者program database for edit and continue.
检查三:
在project->setting->Debug中 Executable for debug session的路径 ,对应的路径应该与:project->setting->link->category:General中的Output file name的路径一致。前者为绝对路径,后者可以是相对路径。

我的情况适用于检查三,由于更改了第一个路径,在Debug时,运行的是以前项目路径下生成的不可Debug的EXE文件,因此不管如何设置,都产生了"does not contain debug information. Press OK to Continue"的错误。
posted @ 2014-05-05 19:06  BBOOT  阅读(405)  评论(0编辑  收藏  举报