我在 VisualStudio 中使用 SOS.dll 来调试我的 C# 程序。程序如下。
调试命令是!DumpStackObjects。
class Program
{
static void Main()
{
Int32 result = f(1);
}
static Int32 f(Int32 i)
{
Int32 j = i + 1;
return j; <===========BreakPoint is here
}
}
在 Visual Studio 的即时窗口中输入“!dso”命令后,结果如下:
操作系统线程 ID:0xf6c (3948)
ESP/REG 对象名称
为什么什么都没有?我认为应该有 args i 和局部变量 j。
感谢您回答我的幼稚问题...