Can you see the evaluation stack in mdbg?

安稳与你 提交于 2019-12-22 18:36:31

问题


Say I have the following CIL:

ldc.i4 40 <- a breakpoint is set here
ldc.i4.2
add
box int32
call void [mscorlib]System.Console::WriteLine(string)

I then use ilasm /debug main.il to assemble the exe and pdb files to use in mdbg.


My question is, when I'm at say line 3, before the add operation is executed, I would want to see the evaluation stack which would show me the two int32 constants, 40 and 2, which I had loaded before.

How can I view this evaluation stack in mdbg?


回答1:


I found the command that's needed to view the evaluation stack while debugging in mdbg: p[rint].

p[rint]       prints local or debug variables


来源:https://stackoverflow.com/questions/13026449/can-you-see-the-evaluation-stack-in-mdbg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!