5

I got an exception I can't back trace. I would like to know where the exception is thrown. Is there an option for that in xCode 4.2? As you can see the call stack is not much of a help. The only thing I know is that Iam trying to access an item in a NSArray at a faulty index.

All ideas are welcomed. Thanks!

enter image description here

Konrad77
  • 2,515
  • 1
  • 19
  • 36

1 Answers1

5

Set a breakpoint on objc_exception_throw and that will stop the program on that message.

EDIT ... Or just set the Exception Breakpoint in Xcode. Too used to doing this stuff directly in gdb.

MyztikJenz
  • 1,650
  • 14
  • 19
  • 1
    Thank you very much. I pressed the + in breakpoint menu. And added "Add exception break point". (On trow). Tnx – Konrad77 Mar 03 '12 at 12:49