Windbg 为什么';中缺少数值表达式&书信电报;下线>';?
在我的WinDbg控制台中:Windbg 为什么';中缺少数值表达式&书信电报;下线>';?,windbg,Windbg,在我的WinDbg控制台中: 0:004> sxe -c "!soe System.NullReferenceException 1; .if (@$t1 == 1) { .dump /ma /u c:\tmp\NullReferenceException.dmp; gn } .else { gn }" Numeric expression missing from '<EOL>' 0:004>sxe-c“!soe System.NullReferenceException
0:004> sxe -c "!soe System.NullReferenceException 1; .if (@$t1 == 1) { .dump /ma /u c:\tmp\NullReferenceException.dmp; gn } .else { gn }"
Numeric expression missing from '<EOL>'
0:004>sxe-c“!soe System.NullReferenceException 1;.if(@$t1==1){.dump/ma/u c:\tmp\NullReferenceException.dmp;gn}.else{gn}”
“”中缺少数值表达式
问题很简单——为什么
如何修复它?行末尾缺少异常代码。代码是数字的,或者对于某些例外情况,有一个命名常量 命令的语法是
sxe -c "" <code>
所以在你的情况下应该是这样的
sxe -c "!soe System.NullReferenceException 1;
.if (@$t1 == 1) { .dump /ma /u c:\tmp\NullReferenceException.dmp; gn }
.else { gn }" clr
注意命令末尾的clr