Skip to content

Instantly share code, notes, and snippets.

@aarizhov
aarizhov / iOSUncaughtExceptionHandler.m
Created March 10, 2017 15:57
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]);