How to: Follow a Pointer Through Memory
This topic applies to:
Edition |
Visual Basic |
C# |
C++ |
Web Developer |
---|---|---|---|---|
Express |
Native only |
|||
Standard |
Native only |
|||
Pro and Team |
Native only |
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.
In native code applications, you can use register names as live expressions. For example, you can use the stack pointer to follow the stack.
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 follow a pointer through memory
In the Memory window Address box, type a pointer expression. The pointer variable must be within the current scope. Depending on the language, you might need to dereference it.
Press ENTER.
Now, when you use an execution command, such as Step, the memory address displayed will automatically change as the pointer changes.