3

When exception occurred there is stack trace this kind:

2 CoreFoundation 0x013bd1cc -[__NSArrayI objectAtIndex:] + 236
3 –ò–°–≠–î 0x0000ac76 -[ContentButton handleGesture:] + 326
4 UIKit 0x00de24f2 -[UIGestureRecognizer _updateGestureWithEvent:] + 730
...

I see that exception occurred when I try to get objectAtIndex: in NSArray in my custom class ContentButton in handleGesture: method.

But what does this numbers after message mean (like +236)?

In java stack trace that mean line number where exception occurred (as I know). but message [__NSArrayI objectAtIndex:] sent in line 47 (not 236).

Thanks a lot.

spassas
  • 4,778
  • 2
  • 31
  • 39
Gusev Andrey
  • 446
  • 5
  • 23

1 Answers1

1

There's a great video from WWDC 2010 on understanding crash reports.

You can find it here (login to Apple Developer required)

Simon
  • 8,981
  • 2
  • 26
  • 32
  • 1
    Still don't know what does this numbers means. In video was told that XCode symbolises any crash reports by self, but is not - still get +236-like appends to messages name and still don't know what is this.. – Gusev Andrey Sep 26 '11 at 06:24
  • @GusevAndrey I'm confused, too. As far as I can tell, it's the number of line numbers down from the declaration of the method _in the assembly code_. Not terribly helpful unless you know precisely how every line of your class translates to Assembly, and how the compiler associated variables. – Ky - Jul 28 '15 at 15:05