在非托管开发世界中,您可以通过在调试器的监 window 口中键入“@eax”来观察方法的 DWORD 返回值。
有人知道托管代码中的等效快捷方式吗?
相关点:我了解到 VS2008 SP1 支持 $exception 作为 watch 窗口中的魔法词。您还知道其他快捷方式吗?
最佳答案
我不确定这是否正是您的意思,但是您可以为跟踪点打印出一些其他关键字:
$ADDRESS address of current instruction
$CALLER name of the previous function on the call stack
$CALLSTACK entire call stack
$FUNCTION name of the current function
$PID process ID for current process
$PNAME name of the current process
$TID thread ID for current thread
$TNAME name of the current thread
关于c# - 你知道 '@eax' 的托管等价物吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/375221/