vc10设置断点失效的解决方法

原文地址: http://www.cppblog.com/zhangyq/archive/2011/07/26/151868.html
 
 
在运行前用F9设置了断点,但是运行后,那个断点却变成了空心圆和黄色感叹号标志。
鼠标放到失效断点上,会弹出一些英文,告诉你如果解决这个问题: 

The breakpoint will not currently be hit.The source code is different from the original version.

To allow the breakpoint to be hit when the source code is different,right-click on the breakpoint,

Choose ‘location…’,and turn on ‘Allow the source code to be different from the original version.

To allow this for all breakpoints,disable the option ‘Require source files to exactly match the original version’ under Tools,Options,Debugging,General.
我们这里直接点击失效断点的右键菜单选“location”,在Allow the source code to be different from the original version.的方框上
点击一下,添加个勾就行。
在运行至断点处时会提示“The source file is different from when the module was built.Would you like the
debugger to use it anyway?”,选下面的“是(Y)"按钮就可以了,程序会跳到断点处。


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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值