The Variables window provides quick access to variables that are important in the program’s current context. Using the Variables window, you can modify the value of selected variables while the program is being debugged.
The Registers window displays the contents of the CPU registers, flags, and floating-point stack. Using the Registers window, you can change the value of any register or flag while the program is being debugged, or add registers (such as @EAX
) to the Watch window.
To view the value in a register
To view the return value of a function in the Variables window
The function return value appears in the Value column.
To turn off the display of return values in the Variables window
To change the value of a register
Caution Changing register values (especially in the EIP and EBP registers) can affect program execution.
To set or clear a Register flag
The register flags and their set values for Intel x86 processors are the following:
Register Window Flags
Flag | Set | |
Overflow | O = 1 | |
Direction | D = 1 | |
Interrupt | I = 1 | |
Sign | S = 1 | |
Zero | Z = 1 | |
Auxiliary carry | A = 1 | |
Parity | P = 1 | |
Carry | C = 1 |