User forums > Help

Can't debug programs from Code::Blocks on Mac OSX

<< < (3/4) > >>

Isa:
Hi,
I used to use Code::Blocks on Windows but have to use Mac OS for working and have problem using C::B on this OS.
I have a silly question:

I do not know what should be in the Settings/Debugger/Default/Executable path for me??
(nothing was written by default)

For info: I am using Code::Blocks 12.11
Mac OS X version 10.9.2
In Settings/Compiler/Toolchain executables/Compiler's installation directory, I have: /usr
Compiling and run any "Hello World!" or other programs works, but when I am trying to use the debugger, it does not work and I have the following message:
ERROR: You need to specify a debugger program in the debuggers's settings.
(For GCC compilers, it's 'gdb' (without the quotes))

Thanks!





oBFusCATed:
You need to install gdb and use the path to it.
I don't know if it is still provided by Apple or you need to use some other means to install it.

Isa:
Indeed, many thanks!
Just for beginners like ma, this web page was really useful:
http://wiki.lazarus.freepascal.org/GDB_on_OS_X_Mavericks_and_Xcode_5

But however, now I have the same problem as Yannick who began this post...:

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /Users/Isabelle/Desktop/These/TROLL/essais_simulations/esssssai/
Adding source dir: /Users/Isabelle/Desktop/These/TROLL/essais_simulations/esssssai/
Adding file: /Users/Isabelle/Desktop/These/TROLL/essais_simulations/esssssai/bin/Debug/esssssai
Changing directory to: /Users/Isabelle/Desktop/These/TROLL/essais_simulations/esssssai/.
Set variable: DYLD_LIBRARY_PATH=.:
Starting debugger: /usr/local/bin/gdb -nx -fullname  -quiet  -args /Users/Isabelle/Desktop/These/TROLL/essais_simulations/esssssai/bin/Debug/esssssai
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell'  sleep 80000336)
Debugger name and version: GNU gdb (GDB) 7.7
Debugger finished with status 1


I have difficulties to finally sort out if you found any solutions to this;

"Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell'  sleep 80000336)" problem....

Thanks a lot again!

Isa:
for info:
when I try to execute this:
osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80000255
in a terminal,
it opens a new terminal window,
as said here:
http://forums.codeblocks.org/index.php?topic=17681.0


oBFusCATed:
I think this is fixed in the latest trunk code, but no one has made a build to test it.

We had similar problems with newer linux terminal emulators and now there it works perfectly.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version