Partilhar via


How to: Follow a Pointer Through Memory 

This topic applies to:

Visual Studio Edition

Visual Basic

C#

C++

J#

Express Edition

No

No

Native only

No

Standard Edition

No

Yes

Native only

Yes

Pro/Team Edition

No

Yes

Native only

Yes

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.

NoteNote

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 may 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