Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4.2 : when app crashes, threads rarely display callstack

Since I've installed the last xCode (my previous one was the 3.xx), a have hard times to debug my crashing apps. Indeed, the callstack is often empty. And the displayed method is

int main(int argc, char *argv[]) {   
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, @"MyAppDelegate");
    [pool drain];
    return retVal;
}

Ex : Empty call stack !

Have anyone noticed this ? It was working perfectly on the same project with previous XCode. Is there any solution ?

like image 471
Martin Avatar asked Feb 13 '12 16:02

Martin


2 Answers

Try setting Exception Breakpoint on Breakpoint panel:

enter image description here

enter image description here

like image 119
iHunter Avatar answered Nov 20 '22 02:11

iHunter


Notice that you can change the number of items displayed in the stack frames view by dragging the slider at the bottom of the view.

like image 3
rooftop Avatar answered Nov 20 '22 02:11

rooftop