堆栈跟踪中方法名称末尾的"+ n"值是什么意思?

dar*_*iom 19 .net c#

读取堆栈跟踪时:

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
   System.Convert.ToInt32(String value) +68
Run Code Online (Sandbox Code Playgroud)

+68,+ 112等数字是什么意思.我猜他们已经抵消了什么.如果是这样,什么?

Jon*_*eet 15

我相信他们偏向于方法的代码 - 无论是IL还是JIT编译汇编字节,我都不确定......

(基本上它们取代了行号,当然没有pdbs就无法使用.)

  • 我相信它们会偏移到机器代码字节.在堆栈跟踪中,我有偏移量是+452,最后一个函数IL指令是0x102(不幸的是 - 因为我希望能够确定哪个指令导致问题). (4认同)

Cod*_*shi 6

它的意思是:

\n\n
\n

it\xe2\x80\x99s 是该方法的本机指令的偏移量。

\n
\n\n

阅读本文了解更多详情。

\n