Reputation: 784
Having Followed these threads:
- Xcode always stopping at main.m after a crash
- Xcode 4.2 showing the wrong line of code on error
- Debugging app crashes with iOS Simulator & XCode 4 halts in main() function, not crash source
I am still crashing at 'main' as opposed to the actual line of the crash.
Thanks
Upvotes: 8
Views: 2566
Reputation: 17317
Unfortunately lldb
is somewhat unstable and appears to be the cause of the crashes in your case. Switching to gdb
can cause these crashes to go away.
Upvotes: 0
Reputation: 631
Try this:
Breakpoints -> Add -> Add symbolic breakpoint. A new window pops up.
Type "objc_exception_throw" in symbol field and click Done.
Upvotes: 3