开发者

MSVC9: How do I view a location in memory?

开发者 https://www.devze.com 2022-12-14 19:46 出处:网络
I\'m pretty sure I\'moverlooking something totally obvious, but I want to view the raw contents of a point in memory under MSVC开发者_如何转开发9, but I can\'t find a location in the UI where I can pu

I'm pretty sure I'm overlooking something totally obvious, but I want to view the raw contents of a point in memory under MSVC开发者_如何转开发9, but I can't find a location in the UI where I can punch in a memory address. How can this be done?


A couple of places:

  1. When you're debugging, go to Debug->Windows->Memory
  2. In the watch window, just cast a memory address to whatever you want:

    (char*)0xdeadbeef
    


Also check out the format specifiers for use in the watch window. My favourites are hr and wm but you should check out m and its friends.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号