Freigeben über


View register values in the Registers window (C#, C++, Visual Basic, F#)

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Registers window displays register contents during Visual Studio debugging. For a high-level introduction to concepts behind registers and the Registers window, see Debugging basics: Registers window.

Note

Register information is not available for script or SQL apps.

During debugging, register values change as code executes in your app. Values that have changed recently appear in red in the Registers window.

To reduce clutter, the Registers window organizes registers into groups, which vary according to platform and processor type. You can display or hide register groups. For more information, see How to: Display and hide register groups.

For info on the flags you see in the Registers window, see About the Registers window

You can edit register values. For more information, see How to: Edit a register value.

To open the Registers window

  1. Enable address-level debugging, by selecting Enable address-level debugging in Tools (or Debug) > Options > Debugging.

  2. While debugging is running or at a breakpoint, select Debug > Windows > Registers, or press Alt+5.

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 settings.

See also