11
votes

I'm trying to learn how to understand crash logs better and am doing OK so far. I've noticed one part that wasn't explained in Diagnosing Issues Using Crash Reports and Device Logs. This is the + number value at the end of each part of the backtrace.

Here's an example:

6   UIKit    0x38bf3e7c -[UIViewController window:willAnimate:duration:] + 704

What does the + 704 refer to?

Much thanks

1
a guess it might be the line number in the source code.mihail
Good guess, but I don't think it's correct. Line numbers look like: 0x00003dce main (main.m:6) (the :6 at the end of the filename)Jasarien
Those hexadecimal exception numbers in TN2151 are funny.Constantino Tsarouhas

1 Answers

12
votes

The number stands for bytes offset from the entry point of the method to the instruction which caused the crash.

Check out this thread describing how to read and understand stack traces. The tutorial by Ray Wenderlich about dealing with app crashes under iOS in general is also a very good source.