Share via


How to: Edit a Register Value 

This topic applies to:

Visual Studio Edition

Visual Basic

C#

C++

J#

Express

No

No

Yes

No

Standard

Hidden

Yes

Yes

Yes

Pro/Team

Hidden

Yes

Yes

Yes

The Registers window is available only if address-level debugging is enabled the Options dialog box, Debugging node.

To change the value of a register

  1. In the Registers window, use the TAB key or the mouse to move the insertion point to the value you want to change. When you start to type, the cursor must be located in front of the value you want to overwrite.

  2. Type the new value.

    Caution noteCaution

    Changing register values (especially in the EIP and EBP registers) can affect program execution.

    Caution noteCaution

    Editing floating-point values can result in minor inaccuracies because of decimal-to-binary conversion of fractional components. Even a seemingly innocuous edit can result in changes to some of the least significant bits in a floating-point register.

See Also

Tasks

How to: Use the Registers Window