thijs
thijs

Reputation: 3465

What are those + signs at the end of each stack trace line?

I was wondering: When looking at an ASP.NET error page with a stack trace you can see a + sign and a number at the end of each line.

For example: alt text http://employees.claritycon.com/spoov/SharepointDebuggingwithWSSV3_100BD/NiceStackTrace.jpg

Also in the trace pasted in this question: Server Error in '/' Application

The numbers are not the line numbers in the source files, so I suspect them to be something like stack (or parameter) sizes.

Upvotes: 8

Views: 395

Answers (2)

vartec
vartec

Reputation: 134581

  • If it's in the release mode, it's CIL offset for that function in the DLL.
  • If it's in debug mode, it's the line number in the source.

Upvotes: 7

Kylotan
Kylotan

Reputation: 18449

In other languages (and therefore, probably this one too) it denotes the current position in the code, as a number of bytes or instructions offset from the function it is in. So in this case it got 173 bytes/instructions/whatever into Validate and then raised the exception.

I can't explain the 2049947 value however...

Upvotes: 0

Related Questions