简体   繁体   中英

VC++ Shortcut to look at memory at an address

In Visual Studio 2015, I can look at the memory in my program by bringing out the memory window (alt+6) during debugging, copying a pointer's address, and pasting it into the window. This shows me the surrounding memory, which is my favourite feature of the debugger.

This is a lot of steps though for such a frequent task, and has to be done for each address.

Is there an easier way of seeing the memory a pointer is pointing at, along with surrounding memory? Maybe a shortcut I'm missing, or a setting that causes the hover dialog to display more than just one "object" a pointer addresses?

Usually when developing C++ project in debug mode.

Apart from Memory window, we also have auto window,local window and watch window.The layout for me looks like below:

在此处输入图片说明

Drag the variable to memory window and you can get the memory the variable refers to, also with its surrounding memory.And for pointer, it also works to automatically enter the address into memory window.

If it works or not, please give me a feedback.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM