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

Scooter picture Scooter · Jan 13, 2014 · Viewed 100.7k times · Source

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.

Answer

Mike Kinghan picture Mike Kinghan · Jan 13, 2014
  • 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.