今天一个VC6的项目,在做调试时遇到了不能调试的问题,其提示信息是:
does not contain debug information. Press OK to Continue
找了一些资料,常规的解决办法是:
检查一:
- Open your project (or workspace...)
- From menu bar: Build->Set Active Configuration... - make sure the Win32 Debug option is selected.
- From menu bar: Build->Rebuild All
检查二:
- 在project->setting->link->category:Debug中选中Debug Info,选中Microsoft format 。
- 在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"的错误。
本文介绍了在使用VC6进行项目调试时遇到的“doesnotcontaindebuginformation”错误,并提供了三种检查和修复方法,包括配置Debug模式、设置Debug信息格式及确认调试会话可执行文件路径。
2139

被折叠的 条评论
为什么被折叠?



