Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Registers window displays register contents during Visual Studio debugging. For a high-level introduction to concepts behind registers and the Registers window, see About the Registers Window.
During debugging, register values change as code executes in your app. Recently changed values appear in red in the Registers window. For info on the flags you see in the Registers window, see About the Registers window.
Note
Register information isn't available for script or SQL apps.
In C++ code, you can also edit register values. For more information, see Edit a register value.
Note
Dialog boxes and menu commands might differ depending on your Visual Studio edition or settings. To change your settings, select Import and Export Settings on the Visual Studio Tools menu. For more information, see Reset all settings.
View register values
- Open the Tools > Options pane and expand the All Settings > Debugging > General section. Select the Enable address-level debugging checkbox.
- Open the Tools > Options dialog and expand the Debugging > General section. Select the Enable address-level debugging checkbox.
While debugging or while paused at a breakpoint, select Debug > Windows > Registers, or press Alt+5.

Display and hide Register Groups (C#, C++, Visual Basic, F#)
To reduce clutter, the Registers window organizes registers into groups. If you right-click the Registers window, you see a shortcut menu containing these groups. In the following procedure, you can show or hide this menu.
Note
The dialogs and menu commands you see might differ from the UI described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Reset all settings.
To display or hide register groups:
Right-click the Registers window.
On the shortcut menu, select the register groups you want to show or hide.
Register groups not supported by the hardware you're debugging on are disabled on the shortcut menu, so they can't be selected.
Edit a register value (C++)
For C++ code, you can edit a register value while paused in the debugger.
The Registers window is available only if address-level debugging is enabled in the Options dialog box, Debugging node.
To change the value of a register:
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.
Type the new value.
Caution
Changing register values (especially in the EIP and EBP registers) can affect program execution.
Caution
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.