Viewing Memory Contents
You can use the Memory window to view large buffers, strings, and other data that do not display well in the Watch or Variables window.
By default, the Memory window displays numbers in decimal (base 10) format. You can control the Memory window display by using options on the Debug tab in the Options dialog box on the Tools menu. To view Unicode in the Memory window, set the Format option to Wide Char. To display data bytes with Unicode characters, select the Show Data Bytes check box also.
To view memory contents at a specified location using drag-and-drop functionality
From the View menu, click Debug Windows and Registers.
The Memory window appears.
In any window, select a memory address or pointer variable containing a memory address.
Drag the address or pointer to the address section of the Memory window, and drop it.
To view memory contents at a specified location by editing
From the View menu, click Debug Windows and Memory.
The Memory window appears.
Select the Memory window.
In the Address box, select the memory address.
Type or paste the new memory address and press ENTER.
The Memory window displays the contents of memory locations beginning at the address specified in the Address box.
To view memory contents at a specified location using Go To
From the View menu, click Debug Windows and Memory.
The Memory window appears.
Select the Memory window.
From the Edit menu, click Go To.
The Go To dialog box appears.
In the Go To What box, select Address.
In the Enter Address/Expression box, type or paste an address.
Click Go To.
To specify a live expression for the memory location
From the View menu, click Debug Windows and Memory.
The Memory window appears.
From the Tools menu, click Options.
The Options dialog box appears.
Click the Debug tab.
In the Memory window Address box, type an address expression.
You can type
*pPtr
, for example, to display memory contents starting at the address pointed to bypPtr
.Click the Re-evaluate Expression check box.
Click OK.
You can view some items more easily using live expressions. On an Intel-compatible system, you can examine the top of the stack by typing ESP
as a live expression. By specifying a pointer variable, you can use the Memory window to follow the pointer as it increments through an array.