Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug iPhone app errors that occur before the first line

I have a fairly simple app. It compiles fine. Unfortunately, when I Build and Go, it fails before even the first line of code, thus making it impossible for me to even debug it.

Where do I start? I do have the stack track though.alt text

like image 515
AngryHacker Avatar asked Jan 10 '10 18:01

AngryHacker


2 Answers

From the stack trace, it seems your Outlet connections seem messed up in your main XIB file - you could start looking there.

Other than that, you won't be able to debug much, because there's no source code for the iPhone built-in mechanisms, which seem to be failing here (most probably because of something you did in the interface designer/XIBs).

like image 189
Adam Woś Avatar answered Nov 03 '22 00:11

Adam Woś


Set a breakpoint at objc_exception_throw, then restart the application. The breakpoints should be kept after the restart, allowing you to see what's wrong.

like image 22
kennytm Avatar answered Nov 02 '22 23:11

kennytm