读书人

no stack traces seemed to work

发布时间: 2012-08-28 12:37:01 作者: rapoo

no stack traces seemed to work.
[size=medium]http://stackoverflow.com/questions/7841610/xcode-4-2-debug-doesnt-symbolicate-stack-call

static void uncaughtExceptionHandler(NSException *exception) {    NSLog(@"CRASH: %@", exception);    NSLog(@"Stack Trace: %@", [exception callStackSymbols]);    // Internal error reporting}

Next, add the exception handler to your app delegate:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{       NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);    // Normal launch stuff}[/size]

读书人网 >编程

热点推荐