Author Topic: cannot debug  (Read 3943 times)

QTL_leviathan

  • Guest
cannot debug
« on: April 19, 2013, 08:01:18 am »
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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: cannot debug
« Reply #1 on: April 19, 2013, 09:22:28 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!]