You can view the contents of a register from the Registers view,
the Monitors view, or the Memory view. In these views, you can view 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 wish to view.
About this task
To view the contents of a register in the Registers view:
Procedure
- In the Debug view, select the thread for which you want to view
the registers.
- In the Registers view, expand the register group that you want
to view.
- If necessary, use the scroll bars or PageUp and PageDown keys to
scroll the Registers view until the register is visible.
Results
To view the contents of a register you have already added to the
Monitors view (for information about this, see the related topic):
- If necessary, use the scroll bars or PageUp and PageDown keys to scroll
the Monitors view until the register is visible.
- If you want, change the representation of the register: right-click on
the variable and select Change representation from
the pop-up menu. Then select the representation that you want from the resulting
pop-up selection.
To view the contents of a register you have already added to a memory
monitor in the Memory view (for information about this, see the related topic):
- If necessary, use the scroll bars or PageUp and PageDown keys to scroll
the memory monitor until the register's address is visible.
Note: If you are in the Registers view and want to copy a value (for
example, for pasting elsewhere), 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 pop-up
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:
- Right-click the register that you want to edit and select Change
Value from the pop-up menu.
- In the resulting dialog, change the variable value.
- Click OK.
CAUTION:
To complete the dialog,
you must click OK rather than the keyboard Enter key.
Selecting the keyboard Enter key will insert a new line (carriage feed/line
return) in the register value.
- To indicate that the register value has changed, its indicator will have
a delta symbol next to it.