codeblocks debugging

本秂侑毒 提交于 2019-12-12 19:12:56

问题


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.

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.


回答1:


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.

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

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.



来源:https://stackoverflow.com/questions/6549607/codeblocks-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!