iOS: The + number values in backtraces (in crash logs)
Asked Answered
R

1

13

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

Rafi answered 14/1, 2013 at 9:54 Comment(3)
a guess it might be the line number in the source code.Blastula
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)Knute
Those hexadecimal exception numbers in TN2151 are funny.Ventre
E
14

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.

Episcopacy answered 14/1, 2013 at 10:12 Comment(1)
I am reading the thread you linked and it's making sense so far. The RW link is most welcome too, I appreciate your help.Rafi

© 2022 - 2024 — McMap. All rights reserved.