CLion 2023.3 Help

Register view

During a debug session, you can inspect register values of the current frame in the Variables view:

Registers node in the Variables pane

When you switch to disassembly, CLion adds the Registers node and the registers used by the current function. Register values are also shown inlined in the disassembly view:

Registers node added in disassembly view

To view registers for the sources as well, right-click in the Variables pane and select Registers | Always Show:

Opening register view

Select register sets

  1. By default, CLion shows only the general purpose registers. Use the Registers section of the context menu to add other register sets:

    Selecting register sets

Register values representation

CLion shows register values in hex. If the debugger provides an alternative representation, it is shown next to the hex values and colored in grey:

Hex and decimal representation of register values

Wide vector registers are shown as nodes with children. Currently, this mode is supported by GDB only.

Wide vector registers as nodes with children
  1. Focus in the Variables pane and start typing the register name:

    Search in registers

Keep track of register values

  1. Right-click the register you want to track and select Add to Watches from the context menu:

    Adding a value to register
  2. The register will move to the top, and you will see the value being updated as you step through the code:

    Register watch

Modify a register value

  1. Select the register and press F2.

  2. Enter the new value and press Enter.

Last modified: 23 February 2024