The debugging interface of Code::Blocks

The debugging buttons

With Code::Blocks, here are the buttons used to control the debugging process:

By clicking on the red triangle, we can start the debugger with the program of the current project:

Note that if the debugger is already launched, but stopped, clicking on that button makes it continue.

By clicking on the second button, we can launch the debugger and make it stop at the cursor:

By clicking on the third button, we can make the debugger execute the next line of code:

By clicking on the fourth button, we can make the debugger step into the function:

By clicking on the fifth button, we can make the debugger step out the current function:

By clicking on the X button, we can close the debugger:


Breakpoints can be added by simply clicking on the left of the line we want to insert the breakpoint at.

We can remove a breakpoint by simply clicking on it.

By right-clicking on a breakpoint, we can disable it and by right-clicking on a disabled breakpoint, we can enable it.

Disabled breakpoints are ignored by the debugger.

The debugging windows

By clicking on the button with an icon of a bug inside a window, we can open windows giving information about the state of the program when the debugger is stopped (But not closed).

By clicking on Watches, a window, showing the value of the variables, opens.

By clicking on Call stack, a window, showing the function call stack, opens.

By clicking on Breakpoints, a window, showing the breakpoints of the program, opens.

By right-clicking on one of the breakpoints inside the breakpoints window, we can disable it, remove it or remove all the breakpoints of the project.