CLion 2025.2 Help

Live watches

Live watches allow you to monitor global variables in real time without stopping the debugger or the program’s execution. This feature is particularly useful for embedded developers working with time-sensitive protocols, such as Bluetooth, or with physical processes that cannot be interrupted.

Configure a debug server

  1. Enable debug servers in Settings | Advanced Settings | Debugger:

    enable debug servers
  2. Go to Settings | Debugger | Debug Servers and configure your debug server. Live watches are enabled by default for the SEGGER J-Link and ST-LINK debug servers in the Debugger tab:

    enable live watches

Start debugging with live watches

  1. Select the required run/debug configuration in the main toolbar switcher.

  2. Run a debug session.

  3. In the Debug tool window, select the Live Watches tab, then add a variable to watch:

    add variable to watch

    You can also add a variable by right-clicking it in the editor and selecting Add to Live Watches from the context menu:

    add variable to watch from editor

When live watches are active, you can view your variable type, its maximum and minimum values, and the number of value changes:

variable changes in real time

You can also configure a sampling period:

configure sample period

Share your feedback

We are currently improving and extending the functionality of live watches. If you encounter any issues or have any suggestions, share them in CPP-22056. You can also use Help | Submit Feedback… in the main IDE menu.

17 June 2025