Debugger Settings in CodeBlocks on Mac OS

I am starting with CodeBlocks on Mac OS and I am having trouble using the debugger. When I try to use it, I have this debugger error message:

ERROR: you need to specify the debugger program in the debugger settings. (For GCC compilers, this is "gdb" (without quotes))

This is probably due to the lack of the correct executable path in the debugger settings (Settings> debugger> GDB / CDB debugger> Default> Executable path)

Can someone tell me what should be there? or show a screenshot of its default Debugger settings window?

I use: CodeBlocks version 12.11 Mac OS X version 10.9.2

Thanks so much for answering this stupid question!

+4
source share
1 answer

I assume that you have already set up your compiler, and I assume that it is GCC.

If you go to (Settings> Compiler> Global Compiler Options> Toolchain executables), you will probably see something like this: Toolchain Exec - Mac http://i61.tinypic.com/2lcqwr6.png

But instead of the selected debugger, you'll probably see a white line that should point to gdb. Usually this is the same folder with the rest of the gcc toolchain.

If you do not have gdbthis folder in your folder, or instead you did not even configure your compiler, this link may help you: Codeblocks wiki - Mac section

+1
source

Source: https://habr.com/ru/post/1532672/


All Articles