开发者

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.

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


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).


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜