News CLion supports debugging embedded targets with SEGGER J-Link. Recently, we extended this integration with one-click access to Ozone and SystemView, as well as the ability to run debug sessions using AI agents. We presented the updated integration together with SEGGER in a joint webinar, and this post summarizes the highlights.
You can also watch the demo recording and browse the slides.
How CLion and SEGGER tools work together #
The integration lets you cover the whole embedded loop from CLion: write code, build, flash the board, and debug on the target. Next to the debugger, CLion shows RTT output, live variable values, and RTOS state. When you need deeper analysis, it opens SEGGER’s Ozone and SystemView. The same debugger is also available to AI agents.
The workflow involves three SEGGER products. J-Link is the debug probe, and it supports more than 15,000 devices and SoCs from over 120 silicon vendors. Ozone is a standalone graphical debugger and performance analyzer that offers instruction tracing, code profiling, and code coverage analysis. SystemView records what firmware does at runtime, including tasks, interrupts, and their interactions, with minimal overhead. It works on any CPU and RTOS, as well as on bare metal.
Under the hood, CLion connects to the J-Link GDB Server over the remote GDB protocol. The server drives the probe, which flashes the target, controls its execution, and reads its memory. CLion also picks up RTT output and shows it in the IDE console.
You need CLion 2026.2 or later and the SEGGER J-Link software package. To get started, go to Settings | Debugger | Debug Profiles and add the SEGGER J-Link profile, which locates the J-Link GDB Server in your SEGGER installation.
Specify your board in the Device field, and turn on the RTT console in the Device Settings tab and live watches in the Debugger tab if you want them. From then on, a single click builds, flashes, and starts debugging.
You can launch Ozone and SystemView from the running session by clicking the corresponding icons in the Debug tool window.
Giving AI agents access to the debugger #
CLion exposes its debugger to AI agents through the built-in Model Context Protocol (MCP) server, so an agent can set breakpoints, step through code, evaluate expressions, and read memory, CPU registers, and disassembly on the real target. You follow the session in the regular debugger and can take over at any time. Bundled skills guide agents through general debugging, hard fault analysis on Arm Cortex-M, and RTOS state exploration. You can also add your own skill.
The most convenient way to run agents is JetBrains Air, which is built into CLion 2026.3. Air works with any agent that supports the Agent Client Protocol (ACP), such as Junie, Claude Code, Codex, or OpenCode, using your existing subscriptions or API keys. Junie Lite offers a free model through December 31, 2026. For setup details, see the documentation on agentic debugging.
Demo: Debugging a stalled signal pipeline on an nRF52840 #
The demo ran on an nRF52840 development kit with an on-board J-Link and a CMake project built on FreeRTOS 11.3. Three tasks read an emulated sensor every 10 milliseconds, filter the signal, and send the results to a PC through FreeRTOS queues.
We first checked a healthy pipeline in CLion with RTT, RTOS views, and live watches, and opened Ozone from the same session. Then we flashed a build with a bug in the telemetry code. SystemView showed the telemetry task using too much CPU time. We handed the session to an AI agent, which found the root cause on the real hardware, fixed the code, reflashed the board through J-Link, and verified the fix.
Key Q&A #
Setup for Ozone and SystemView
Both tools work without extra setup in most cases, because CLion passes them the executable path, device, interface, and speed from the debug profile. If you need project-specific settings, you can configure them in Ozone or SystemView. Ozone also has a scripting interface for automating a complete debugging run.
Ozone and CLion’s debugger
CLion’s debugger covers everyday work, including stepping, live watches, and RTOS views. Ozone adds capabilities for system analysis, such as instruction tracing when combined with J-Trace. You can use both, depending on the task.
Several MCUs in one project
You need one debug profile per board model, but you can reuse the settings for boards from the same MCU family. CLion 2026.3 lets you edit debug profile settings in a JSON file. If your configuration is complex, you can ask an agent to generate the profiles for you.
Debugging through a Raspberry Pi
If the probe and the target are connected to a Raspberry Pi, J-Link offers several options. You can use its network capabilities, or you can run the J-Link connection server, which makes USB-connected probes available on your corporate network. You can also connect a J-Link Pro, which has an Ethernet interface, directly to your network, removing the Raspberry Pi from the chain.
Timing analysis with agents
Agents can use everything the CLion debugger shows you, but they cannot yet analyze SystemView data, so tracking down missed deadlines caused by interrupts is not covered in this post. SEGGER is developing AI skills for SystemView and Ozone, and both teams plan to make them available in CLion.
Try it yourself #
To set up the integration, see the CLion documentation on debug profiles. To learn more about the SEGGER tools, visit the pages for J-Link, Ozone, and SystemView. To try agents in CLion, download CLion 2026.3 and learn more about Air in the documentation.
If you want to evaluate CLion for your team, use the CLion trial version or request a demo.