CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Embedded GDB Server

Last modified: 11 January 2023

OS: Windows (MinGW or MinGW-w64) / Linux / macOS

Required tools: a debug probe with software, cross-compiler toolchain

Build targets: CMake / Makefile / custom build target

To debug on-chip with a GDB server, you need to create a special run/debug configuration. In CLion, you can quickly create configurations using the New Embedded Configuration wizard for the following GDB servers:

You can also create a run/debug configuration for any other debug probe software that complies with the GDB server protocol. To do this, add a new Embedded GDB Server configuration from the Run/Debug Configurations dialog. For more details, see Adjust the Embedded GDB Server configuration.