How to: Select a Memory Location
This topic applies to:
Edition |
Visual Basic |
C# |
C++ |
Web Developer |
---|---|---|---|---|
Express |
||||
Standard |
||||
Pro and Team |
Table legend:
Applies |
|
Does not apply |
|
Command or commands hidden by default. |
The Memory window is available only if address-level debugging is enabled the Options dialog box, Debugging node.
If you want to move instantly to a selected location in memory, you can do so by using a drag-and-drop operation or by editing the value in the Address box. The Address box accepts not only numeric values, but also expressions that evaluate to addresses. By default, the Memory window treats an Address expression as a live expression, which is reevaluated as your program executes. Live expressions can be quite handy. For example, you can use them to look at the memory that is touched by a pointer.
Note
The dialog boxes and menu commands you see might differ from those 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 Visual Studio Settings.
To select a memory location using drag and drop
In any window, select a memory address or pointer variable that contains a memory address.
Drag the address or pointer to the Memory window.
To select a memory location by editing
In the Memory window, select the Address box.
Type or paste the address you want to see, and press ENTER.