Viewing the contents of a register

You can view the contents of a register from the Registers view, the Monitors view, or the Memory view. In these views, you can observe and change the contents of registers in the current thread of your program. In the Registers view, the registers are categorized, so you only need to expand the category of registers that you want to view.

View the contents of a register in the Registers view

Procedure

  1. In the Debug view, select the thread, or the thread's stack frame, for which you want to view the registers.
  2. In the Registers view, expand the register group that you want to view.
  3. If necessary, use the scroll bars or PageUp and PageDown keys to scroll the Registers view until the register is visible.
    Note: If you are in the Registers view and want to copy a value, you must put it into edit mode before you can copy it. To edit a value in the Registers view, double-click on it or right click it and choose Change Value from the menu. Either action will open the Set Value dialog box from which you can copy the value of the register.
    Tip: To improve performance, collapse register groups that you are not using or editing.

    Register values can be changed in the Registers view by performing these steps:

    1. Right-click the register that you want to edit and select Change Value from the pop-up menu.
    2. In the resulting dialog, change the variable value.
    3. Click OK. To indicate that the register value has changed, its indicator will have a delta symbol next to it.
      Attention: To complete the dialog, you must click OK rather than the keyboard Enter key. Selecting the keyboard Enter key will insert a new line in the register value.

View the contents of a register you have already added to the Monitors view

Procedure

  1. If necessary, use the scroll bars or PageUp and PageDown keys to scroll the Monitors view until the register is visible.
  2. If you want to change the representation of the register, right-click the register name and select Change representation from the pop-up menu. Then select the representation that you want from the resulting pop-up selection.

View the contents of a register you have already added to a memory monitor in the Memory view

Procedure

If necessary, use the scroll bars or PageUp and PageDown keys to scroll the memory monitor until the register's address is visible.