void exceptionHandler(NSException *exception) { NSLog(@"stackSymbols:%@", [exception callStackSymbols]); } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { #if DEBUG NSSetUncaughtExceptionHandler(&exceptionHandler); #endif }