How to: Follow a Pointer Through Memory

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply

Native only

Topic does not apply

Standard

Topic does not apply

Topic applies

Native only

Topic applies

Pro and Team

Topic does not apply

Topic applies

Native only

Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

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

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

  2. Press ENTER.

    Now, when you use an execution command, such as Step, the memory address displayed will automatically change as the pointer changes.

See Also

Concepts

Memory Windows