SRandazzo
SRandazzo

Reputation: 784

Xcode 4.3.2 + iOS SDK 5.1 Exception Breakpoint not working

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

Answers (2)

ThomasW
ThomasW

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

Den Telezhkin
Den Telezhkin

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

Related Questions