eclipse调试遇到的问题集锦

在Eclipse中调试时遇到断点显示感叹号的错误,提示'Breakpoint attribute problem: installation failed'。问题可能源于直接在当前工作台导入已存在工程。解决方案包括检查源文件是否对应正确,启用gdb调试痕迹,或删除现有工程并重新Import。通过清理工作台并完整Import工程解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


调试的时候遇到了这样的错误提示,断点是感叹号:

Multiple markers at this line

-Breakpoint attribute problem:installation failed

-Line breakpoint :XXX.c[line:91]


先Mark一下,有空再研究。

有知道答案的还望留言解答,不胜感激啊~



错误可能性自我分析:我是直接在当前工作台下,新建一个空的工程,然后将这个工作台下的某个已存在的工程Import进来的,有可能错误在这里。

之前都一直好好的,可以正常运行和debug。

几种解决方法:(来自于搜索结果)

This messages indicates that the source file where you set the breakpoint does not belong to the actual binary you are debugging (btw, gdb will issue this message). This can be the case if you have multiple binaries in your project that share the same source but not all of the files. You can ignore then this warning. 

You can activate gdb traces to see the gdb command input/output. Windows->Preferences-C/C++->Debug->gdb->Enable traces.
Does the warning disappear when you actually run your program? Does it stop at the breakpoint set using the GUI?
 


自己解决方法,将当前工作台下所有与该工程有关的东西挪出去,然后重新建立一个工程,把刚刚的工程import进来,注意import的时候有几个选项都要打上勾,最后就好了。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值