Xcode 4.2 shows the wrong line of code on error

Possible duplicate:
Xcode always stops on main.m after a crash

In versions of Xcode in the past, every time I debugged a crash, it stopped debugging in the fault line with an error message.

Xcode 4.2 instead shows me this line in main.m

int retVal = UIApplicationMain(argc, argv, nil, nil); 

as the fault line for the failure, even though the error is located elsewhere.

How can I get this to work in Xcode 4.2, how was it used in earlier versions?

+2
ios iphone xcode ipad
source share
2 answers

I do not know how to return to the previous behavior.

Zane Claes offers a great solution to a similar issue here.

Xcode debugging 4.2 does not symbolize stack call

Once you discover in which class your application is crashing, you can use the debugger to navigate and find the culprit

0
source share

Go to the breakpoints panel and add the bottom left, click the + sign and add “Exception Breakpoint”.

Exceptions: All | Break: On throw.

This should solve the problem in most cases.

+10
source share

All Articles