Вопрос

In my WinDbg console:

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>'

The question is simple - why?

How do I fix it?

Это было полезно?

Решение

You're missing the exception code at the end of the line. The code is numeric - or for some exceptions has a named constant.

The syntax of the command is

sxe -c "" <code>

So in your case it should probably be

sxe -c "!soe System.NullReferenceException 1; 
.if (@$t1 == 1) { .dump /ma /u c:\tmp\NullReferenceException.dmp; gn } 
.else { gn }" clr

Note the clr at the end of the command.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top