Search code examples
codeblocks

How do you specify a debugger program in Code::Blocks 12.11?


I am trying to step through my program and I get the following message from Code::Blocks

Selecting target: 
Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))

Unfortunately, I cannot figure out where I would type in gdb.exe.


Solution

    • In the Code::Blocks IDE, navigate Settings -> Debugger

    • In the tree control at the right, select Common -> GDB/CDB debugger -> Common.

    • Then in the dialog at the left you can enter Executable path and choose Debugger type = GDB or CDB, as well as configuring various other options.