Skip to content

Instantly share code, notes, and snippets.

@aarizhov
Created March 10, 2017 15:57
Show Gist options
  • Save aarizhov/cbf1123fc4bc162f8d6e945937474365 to your computer and use it in GitHub Desktop.
Save aarizhov/cbf1123fc4bc162f8d6e945937474365 to your computer and use it in GitHub Desktop.
iOS Uncaught Exception Handler
- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {
NSSetUncaughtExceptionHandler(&exceptionHandler);
return YES;
}
void exceptionHandler(NSException * exception)
{
NSLog(@"%@", [exception name]);
NSLog(@"%@", [exception reason]);
NSLog(@"%@", [exception userInfo]);
NSLog(@"%@", [exception callStackSymbols]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment