Working with memory
You can inspect and change process memory.
The Memory view supports the same addressing as the C and C++ languages. You can address memory using expressions such as:
- 0x0847d3c
- (&y)+1024
- *ptr
You can configure your output to display hexadecimal, ascii and/or signed/unsigned decimal. You can also set the size of the rendering columns. You can configure each memory monitor renderings independently.
You can customize the Memory view to colors and fonts displayed.
To monitor process memory:
- In the Debug view, select a debug session. Selecting a thread or stack frame automatically selects the associated session.
- Select
Add Memory Monitor
in the context menu of the Memory Monitors pane. TheMemory Monitor
dialog appears. - Type the address or expression that specifies the memory section you want to monitor and press "OK". The monitor appears in the monitor list and the Memory Renderings pane displays the contents of memory locations beginning at the specified address.
To view memory in a different rendering:
- Select
Add Rendering
in the context menu of the Memory Renderings pane. TheAdd Memory Rendering
dialog appears. - Select renderings from the list and press "OK".
To change process memory:
Warning: Changing process memory can cause a program to crash.
- In the Debug view, select a debug session. Selecting a thread or stack frame automatically selects the associated session.
- In the Memory Monitors pane, add a new monitor or select an existing monitor.
- In the Memory Renderings pane add a new rendering or select an existing one.
- Type a new value for memory.