代码块调试 [英] codeblocks debugging

查看:139
本文介绍了代码块调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,我无法再在代码块中进行调试。断点被忽略,异常不被捕获。我很确定它在这台机器上工作,但是我必须承认,由于我在多台机器上工作,所以我可能会对此感到困惑。

For some reason I can no longer debug in codeblocks. Breakpoints are ignored and exceptions are not caught. I'm pretty sure it was working before on this machine, but I have to confess that since I work on multiple machines I might be confused on that matter.

m运行Kubuntu 11.04和代码块10.05。在构建选项下,检查生成调试符号[-g](对于调试和版本生成),并且不检查从二进制中剥离所有符号。但是每次运行调试器时,我都会收到消息(没有找到调试符号),我怀疑这是问题的核心。

I'm running Kubuntu 11.04 and codeblocks 10.05. Under Build Options "Produce debugging symbols [-g]" is checked (for both debug and release builds) and "Strip all symbols from binary" is not checked. But every time I run the debugger I get the message "(no debugging symbols found)" which I suspect is at the heart of the problem.

任何建议都会很大赞赏。

Any suggestions would be greatly appreciated.

推荐答案

在2013年中期,我在Debian Wheezy(7.0)中使用了GDB 7.5.1的Codeblocks 10.05,并且面对同样的问题,忽略的断点和抛出的异常(即使被捕获),进程停止工作。

At middle 2013 i was using Codeblocks 10.05 with GDB 7.5.1 in Debian Wheezy (7.0), and faced the same problem, breakpoints ignored and when and exception was thrown (even if it was caught) the process stops working.

怀疑GDB错误我下载了GDB版本7.6源并编译它。观察到相同的行为。

Suspecting of a GDB bug I downloaded the GDB version 7.6 sources and compiled it. The same behaviour was observed.

Finaly我下载了CodeBlocks版本12.11,并解决了这个问题。看来CodeBlocks版本10.05是问题的关键。

Finaly I downloaded the CodeBlocks version 12.11, and that fixed the problem. It seems that the CodeBlocks version 10.05 was the key of the problem.

这篇关于代码块调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆