Codelite debugger error: Failed to locate gdb! at '/usr/bin/gdb'

Mel0n picture Mel0n · Feb 12, 2015 · Viewed 17.8k times · Source

So I have just installed codelite on Ubuntu trusty (14.04) x64

Everything seems to be working fine but when I try to run the debugger I get the error in the question title and it just stops there and does nothing. I have searched far and wide and can't find a solution to this issue.

I did see this post, but it is related to windows not Linux.

I have tried the following:

apt-get install gdb

apt-get install codelite-dbg

ls /usr/bin/ | grep gdb
gdb
gdbtui
gdbus
gdbus-codegen

chmod ug+s /usr/bin/gdb
ls -l /usr/bin/ | grep gdb
-rwsr-sr-x 1 root   root       5720256 Oct 30 14:47 gdb
-rwxr-xr-x 1 root   root           126 Oct 30 14:47 gdbtui
-rwxr-xr-x 1 root   root         35688 Apr  3  2014 gdbus

still getting the error and not sure what to do. The file is clearly there and executable by everybody.

Answer

Eran picture Eran · Feb 13, 2015

If you are using CodeLite 7.0 there was a bug introduced with the auto tools detection (which was fixed in git master).

The problem is that the gdb path contained an extra space /usr/bin/gdb at the end

To fix this, remove the extra space and the problem will go away, from: Settings->Build Settings->Compilers->You Compiler Name->Tools tab->Gdb

Eran