XCode 4.2 : when app crashes, threads rarely display callstack
Asked Answered
K

2

12

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 ?

Kalagher answered 13/2, 2012 at 16:36 Comment(2)
Check this out - #1374358Millennial
And check out #8100554Eider
Z
9

Try setting Exception Breakpoint on Breakpoint panel:

enter image description here

enter image description here

Zebulon answered 13/2, 2012 at 19:7 Comment(1)
Wow ! It works for this crash. Thanks for the magic trick, but it seems too simple after reading the links above...Kalagher
T
3

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.

Twana answered 13/2, 2012 at 18:12 Comment(1)
cooool ! I never noticed it beforeKalagher

© 2022 - 2024 — McMap. All rights reserved.