在Visual Studio 2013中显示堆栈内容(而非堆栈调用) [英] Show Stack content (not stack call) at visual studio 2013

查看:492
本文介绍了在Visual Studio 2013中显示堆栈内容(而非堆栈调用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在Visual Studio 2013中查看堆栈内容(而不是堆栈调用)?

How i can view Stack content (not stack call) at visual studio 2013?

查看ESP指向的位置及其下方.在char处显示内容.

view to where ESP is pointing and below. show content at char.

感谢您的帮助.

推荐答案

另一个答案对于32位代码是正确的,但是对于64位代码来说它只是半正确".

The other answer is correct for 32-bit code, however it is only "half-correct" for 64-bit code.

如果您确实想查看 esp 处的内存,则可以在内存"调试窗口的地址"输入框中输入 esp .

If you really want to see the memory at esp, then you can enter esp in the Address input box in the Memory debug window.

但是,这可能不是您想要的64位代码.堆栈位于 rsp 而不是 esp .

However, this is probably not what you want for 64-bit code. The stack is at rsp not esp.

如果在存储器调试"窗口的地址输入"文本框中输入 rsp ,则将看到堆栈存储器.如果在地址输入"文本框中输入 esp ,则将在( rsp & 0x00000000ffffffff)处看到内存,这可能不是您想要的.

If you enter rsp into the Address input textbox in the Memory debug window then you will see the stack memory. If you enter esp into the Address input textbox then you will see the memory at (rsp & 0x00000000ffffffff), which is probably not what you want.

这篇关于在Visual Studio 2013中显示堆栈内容(而非堆栈调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆