本文介绍了你可以看到MDBG计算堆栈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我有以下CIL:

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

我然后用 ILASM /调试main.il 组装.exe和PDB文件MDBG使用。

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

我的问题是,当我在说第3行,在添加操作执行,我会希望看到计算堆栈这将告诉我两个INT32常数,40和2,这是我以前装。

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.

我怎样才能在MDBG查看此计算堆栈?

How can I view this evaluation stack in mdbg?

推荐答案

我发现真实需要查看计算堆栈的命令,同时调试MDBG: P [RINT]

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

这篇关于你可以看到MDBG计算堆栈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 04:35