Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

codeblocks

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.

like image 949
Scooter Avatar asked Jan 13 '14 03:01

Scooter


People also ask

How do you debug a program in code blocks?

1) Start CodeBlocks 2) Select the Settings menu 3) Select the Debugger... option in the Settings menu 4) In the Debugger Settings window, select the Default category under GDB/CDB debugger 5) You should see a field named "Executable path:" in the Debugger settings window.

How do you debug line by code in line blocks?

Click on (Debug-> Next line) or press F7 for line by line debugging.

How do I stop debugging in code blocks?

You can manually terminate debuggin process by pressin the red "X" beside the "clean and rebuild" button. That will terminate the debugger process.

Where is GDB EXE located?

gdb.exe is a legitimate executable file developed by Runtime Software. This process is known as GetDataBack for FAT Data Recovery and it belongs to the software GetDataBack. It is commonly stored in C:\Program Files.


2 Answers

  • 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.

like image 51
Mike Kinghan Avatar answered Oct 04 '22 12:10

Mike Kinghan


  1. Go to Settings -> Debugger -> Common -> GDB/CDB Debugger -> Default
  2. Click on executable path to find the address to gdb32.exe
  3. Locate where your codeblock is installed
  4. Follow the given path:

CodeBlock -> MinGW -> bin -> gdb32.exe (locate it and double click on it)

  1. Press OK
like image 38
Sahid Avatar answered Oct 04 '22 13:10

Sahid