Created
March 10, 2017 15:57
-
-
Save aarizhov/cbf1123fc4bc162f8d6e945937474365 to your computer and use it in GitHub Desktop.
iOS Uncaught Exception Handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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