C++随记:Debugging information for "Project.exe" cannot be found or does not match.

Error Msg:

Debugging information for "Project.exe" cannot be found or does not match. Binary was not built with debug information.

Resolution:  

To enable debugging:

1) Goto Project->HelloWorld Properties                        < →工具栏Project→xxproject properties>
2) On the left expand "Configuration Properties"
3) Expand "C/C++"
4) On the left, Select "General"
5) 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, expand "Linker"
8) On the left, select "Debugging"
9) On the right, change "Generate Debug Info" to "Yes"
10) Click ok
11) Set your breakpoints
12) Rebuild your application

Also when running your application use Ctrl+F5 to build and run it, this keeps the console window open long enough for you to see your output.
以上修改可以解决标题问题,以下为原文内容,不知是改什么的,暂且放在此处,以后分析。。


(Debugging with VS2005)

The debugging steps outlined above were helpful. However, for the current project I am working on, I had to make one additional change to get my program to debug properly. Here are the steps I took:

1) Open your Project Properties..

2) On the left, expand Configuration Properties.

3) Just beneath that, select "General" under Configuration Properties.

4) On the right, change "Debuggable Assembly" to "Runtime tracking and disable optimizations (/ASSEMBLYDEBUG)"

5) Click OK to save changes.

The option that allows you to generate a map file for your project may also have been necessary, so if all of the above fails to allow you to debug your application, try setting "Generate Map File" to "Yes". Sorry I can't verify this further at this time.

more:

Tool->Options里Debugging->General把require source file to exactly match the original version去掉

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值