Visual studio 在Visual Studio调试器中,可以查看特殊的';变量';从'开始$';。它们是什么?

Visual studio 在Visual Studio调试器中,可以查看特殊的';变量';从'开始$';。它们是什么?,visual-studio,debugging,Visual Studio,Debugging,例如,编写一个函数,例如: void foo() { try { throw new Exception(@"whatever"); } catch { int n=1; //put a breakpoint here } } 当调试器位于catch块的行上时,键入$exception将显示异常信息 还有吗?这些东西是什么?似乎没有关于它们的正式文件。我已经使用$exception很长一段时间了,但我希望还有其他变

例如,编写一个函数,例如:

void foo()
{
    try
    {
        throw new Exception(@"whatever");
    }
    catch
    {
        int n=1; //put a breakpoint here
    }
}
当调试器位于catch块的行上时,键入
$exception
将显示异常信息


还有吗?这些东西是什么?似乎没有关于它们的正式文件。我已经使用
$exception
很长一段时间了,但我希望还有其他变量,例如,可以显示。

这些是调试器为方便您而创建的变量。如果使用即时窗口,则会得到类似的变量:
intx=10


将导致局部变量窗口中出现$x,更多特殊变量如中所述。windbg中还有许多可用的变量,但不确定VisualStudio中支持多少