News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

cannot debug

Started by QTL_leviathan, April 19, 2013, 08:01:18 AM

Previous topic - Next topic

QTL_leviathan

Hi, guys

My OS is Ubuntu 10.04. Since the default gcc version 4.4 which does not support C++11 very well, I installed the latest gcc 4.8.0 in /usr/local. Then I installed codeblocks 12.11 and I set /usr/local/ as the complier directory. After that, something rather strange happened. When I put some breakpoints in my project and tried to debug, the program did not stop and I just saw the console flash. My project is in /home/qtl/C++. There is no space or other invalid characters. Then I changed my compiler directory to /usr/, everything works fine. After that, I installed the latest gdb 7.5 in /usr/local and changed complier directory back to /usr/local. All works fine. Anyone know why such thing happened?  ??? Is it ture that gcc and gdb has to be installed in the same directory?

oBFusCATed

Quote from: QTL_leviathan on April 19, 2013, 08:01:18 AM
Is it ture that gcc and gdb has to be installed in the same directory?
No, in C::B 12.11+. Go to the settings of the debugger and enable full logging then inspect the log.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]