Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the

Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program." 
 
一、调试一般的 程序

在VC6.0里面调试的时候,有时候会出现下面这条警告:One or more breakpoints cannot be set and have been disabled.   Execution will stop at the beginning of the program,特别是调试DLL工程的时候,经常出现,非常烦,原来红色的断点标识变成了空心圆,此时如果继续调试所有的断点都失效了。解决方法有以下两个,一个不行试第二个。

1、直接在菜单Build里面执行Rebuild All,一般能解决问题。

2、

a.在Project菜单中选择setting,弹出设置对话框,选中c/c++页,注意Gateory选中General,将debug info设置为program databse for edit and continue ;

b.在Edit菜单中,选择Breakpoints,在弹出的对话框中点击 Remove All 按钮;

c.Build菜单,Set Active Project Configuration...,在弹出的对话框中选中 myprj.exe Win32 Debug。

 

(Checking your Active configuration is Debug or Release,虽然两种状态下均可调试,但有时就是有些问题,所以尽量在Debug下调试,这也是好的编程习惯。

问题所在:你的 工程 设置可能无调试 数据

 

二、调试DLL
问题用MSDN的描述
However, if one or more of the debuggees have not been designated to the debugger, there will be no symbolic information for the debugger to use when walking through its breakpoint list. Situations where this is likely to occur include:
  • Attempts to set breakpoints in a DLL before the call to LoadLibrary.
  • Setting a breakpoint in an OLE server before the container has started the server.
  • Other similar cases.

NOTE: After you receive notification that these breakpoints cannot be set, the breakpoints will usually continue to show up in the breakpoint list, but they will have a dash (-) to their left, indicating that they are disabled (have not been set).

解决方法:需要加入DLL名称
MUENU:Project-->Setting-->Debug-->Category:AdditialDLLs(Modules for adding your dll's name)
 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值