Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Pecan on April 27, 2026, 09:49:45 pm
-
Installation Guide: Debugger GDB/MI Plugin
A CodeBlocks plugin using the machine interface of the GDB debugger.
Source is available at github Source (https://github.com/pecanh/debugger_gdbmi)
Preparation
- Clone or download a zip
- Cloning creates a folder named debugger_gdbmi
- A zip file needs to be unzipped in a 'debugger_gdbmi' folder.
.cbp files included:
- debugger_gdbmi_wx32_64WK - compiles to the currently active src\devel_32_64 folder.
- debugger_gdbmi_wx32_64 - compiles to ..\..\..\devel32_64
(use only when debugger_gdbmi resides within the contrib workspace. - debugger_gdbmi_wx32_64Nly - compiles to $(#cb)\devel32_64
(CodeBlocks will ask you to define the global 'cb' macro to point to CodeBlocks source folder. - Note: The other .cbp(s) are defined as if debugger_gdbmi resides within the contrib workspace.
Move debugger_gdbmi into that workspace or modify the .cbp(s)
Installation
- Load and compile debugger_gdbmi with the desired .cbp
- Close CodeBlocks and run src/update32_64
- You should find debugger_gdbmi.dll in the src\output32_64\share\CodeBlocks\plugins folder
- You should find debugger.gdbmi.zip in the src\output32_64\share\CodeBlocks folder
Configuration
After installation, restart CodeBlocks and go to Settings->Debugger->GDB/MI default
- Set the executable Path to your gdb.exe.
- Verify the other options meet your requirements.
- Click on the Ok button.
Usage
Go to MainMenu->Debug->Active Debuggers and select GDB/MI default.
Report issues in the Help or Plugins Development forum thread with your Build log and OS.