User forums > Help

cannot debug

(1/1)

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?

--- End quote ---
No, in C::B 12.11+. Go to the settings of the debugger and enable full logging then inspect the log.

Navigation

[0] Message Index

Go to full version