llms.txt: machine-readable documentation index. Markdown version of this page is also available.

CLion 2026.3 Help

Live watches

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

Configure a debug profile

  1. Go to Settings | Build, Execution, Deployment | Debugger | Debug Profiles and configure your debug profile.

  2. On the Debugger tab of the profile, select Enables Live Watches tab in Debug tool window:

    Debugger tab of a SEGGER J-Link debug profile with the live watches checkbox selected under the GDB server port.

Start debugging with live watches

  1. Select the required run/debug configuration and your debug server profile in the main toolbar switchers.

  2. Run a debug session.

  3. In the Debug tool window, select the Live Watches tab. The tab is available in every debug session.

    Live Watches tab with no watches added, showing a description of the feature and the Add live watches and Read documentation links.

    While no watches are added, the tab explains the feature and offers two links: Add live watches…, which opens the dialog for entering an expression, and Read documentation, which opens this page.

    By default, the Live Watches tab opens grouped with GDB and Peripherals tabs. You can change the layout of the tab in Layout Settings.

    TODO
  4. Add an expression to watch by clicking Add live watches… or right-click a variable in the editor and select Add to Live Watches.

    Add to Live Watches popup with g_uptime_ms typed in the expression field, opened over the empty Live Watches tab of a debug session.

For every watch, the table shows its expression, type, and current value, along with the maximum and minimum values and the number of value changes recorded so far:

Live Watches tab tracking three global variables while the program runs, with type, current value, maximum, minimum, and number of changes for each.

Use Columns on the toolbar of the tab () to hide the columns that you do not need.

Click Sampling Period () to select how often CLion reads the values: 2000 ms, 1000 ms, 500 ms, or a custom value. If the period is too short for the number of watches, CLion shows a banner with a link that doubles the period.

Copy values to the clipboard

To copy data from the table, right-click a row and use one of the following actions:

Copy Cell

Select Copy Cell to copy the cell of the column that you right-clicked. If several rows are selected, the action is named Copy Column Cells and copies the cell of that column from every selected row, one value per line. The Ctrl+C shortcut does the same.

Copy Table to Clipboard

Select Copy Table to Clipboard to copy all rows of the table.

Copy Selection to Clipboard

Select Copy Selection to Clipboard to copy the selected rows.

Copy Table to Clipboard and Copy Selection to Clipboard produce comma-separated values with a row of column names on top, and cover only the columns that the table currently shows.

Work with the history of values

CLion records every sample it takes, so you can review how the values changed during the session. The two history actions on the toolbar of the Live Watches tab become available as soon as the table has at least one row.

Show History in Editor

Click Show History in Editor () to open the recorded samples as a CSV file named liveWatchesHistory_<time>.csv in the editor.

liveWatchesHistory CSV file open in the editor, with the Time (s) column followed by one column of sampled values per watched expression.

The first column, Time (s), holds the time elapsed since the start of the session, and every other column holds the values of one watched expression.

Clear History

Click Clear History () to discard the recorded samples and reset the Max, Min, and Changes columns. This is useful when the history has grown too long, or when it still holds the values that the target produced before your firmware started to work.

CLion keeps the most recent samples only. The limit is set by the cidr.livewatches.history.depth registry key (Tools | Internal Actions | Registry), which is 10000 samples by default.

17 April 2026