VS2005设置Debugging information
来源:互联网 发布:希特勒回来了 知乎 编辑:程序博客网 时间:2024/06/10 13:03
用了快3年的XP崩溃了。现在连Vista都被微软抛弃了,而且Win7也确实慢慢成为主流的Windows系统,于是我也安装了个Win7。
在Win7下重装VS2005,提示有兼容性问题。上网查了下,问题不大,一般使用没有影响,要解决需要安装VS2005升级到Vista版的补丁。无视之,出了问题再说。打上VS2005SP1补丁。
编程,调试,出问题了,总是弹出对话框:
Debugging information for "YourProject.exe" cannot be found. Binary was not built with debug information.
我看了看界面菜单栏下面的solution configure,确实是debug, Win32。为什么没有debug information呢?以前用的时候貌似没遇到过这个问题啊。
把错误提示信息输入百度,找到解决办法:(liang_0537的博客)
菜单栏Project --> XXX Properties --> Configuration Properties --> C / C++ --> General --> 将"Debug Information Format"从Disable改为:Program Database For Edit And Continue (/ZI)
左边C / C++ --> Optimization --> 将右边Optimization一栏从“Maximize Speed”改为:Disable。开发阶段关掉优化,优化会导致调试信息不准确,步进箭头乱跳。
上一级Configuration Properties --> Linker --> Debugging --> 将Generate debug info一栏改为Yes.
再试,好了。
又及:
在VS2005中编写控制台程序时,如果用Ctrl+F5执行程序,完了会停在命令行“请输入任何键继续……”;如果直接用F5启动,程序执行结束时命令行会自动关掉;直接双击EXE文件也是命令行窗口一闪就消失了,如果想最后停在命令行,可以在最后一个 } 前写上:
system("pause");
system是标准C函数,相当于在shell中输入pause命令,windows下就会停在“请输入任何键继续……”
- VS2005设置Debugging information
- debugging information corrupt; recompile module
- error LNK1103: debugging information corrupt
- Debugging Information in Separate Files
- debugging information corrupt; recompile module 解决办法
- Fatal error LNK1103: debugging information corrupt
- VC2005调试时错误“No Debugging Information”
- debugging information corrupt; recompile module 解决办法
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error LNK1103: debugging information corrupt; recompile module
- vc60.pdb” is missing debugging information for referencing module 错误
- Debugging information cannot be found or does not match
- fatal error LNK1103: debugging information corrupt; recompile module
- Debugging information for... cannot be found or does not match
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error LNK1103: debugging information corrupt; recompile module
- fatal error 1103 : debugging information corrupt;recompile module
- 数据结构(C#版)概念整理
- php下载文件的函数
- 二维码识别/生成工具 c#实现
- android编译系统学习
- windows下mercurial 服务器安装与配置
- VS2005设置Debugging information
- 跨win32,linux的写日志代码
- use WLST to create weblogic domain automatically
- use WLST to create weblogic cluster
- informix chunk状态问题归纳
- 根據賽事類型,輸出不同的match編輯介面
- 估算那点事
- Cassandra常用命令
- 【天道酬勤】