petko_stankoski
petko_stankoski

Reputation: 10713

What does +number in the stack trace mean

I have an error and this is shown:

[OverflowException: Value was either too large or too small for a Decimal.]
System.Decimal..ctor(Double value) +0
System.Decimal.op_Explicit(Double value) +30
MyMethod(int myParameter) +5174
AnotherMethod(int myParameter) ....

What does +5174 mean? It's not a line number.

Upvotes: 4

Views: 423

Answers (1)

ilivewithian
ilivewithian

Reputation: 19692

It will be the IL offset, this happens when no PDB files / debug information are present.

You can have PDB data generated for release assemblies, which makes tracking down issues much more straight forward.

Upvotes: 4

Related Questions