Skip to content

Instantly share code, notes, and snippets.

@ellneal
Created April 13, 2012 10:55
Show Gist options
  • Save ellneal/2375839 to your computer and use it in GitHub Desktop.
Save ellneal/2375839 to your computer and use it in GitHub Desktop.
main() exception trace
@autoreleasepool {
int result = -1;
@try {
result = UIApplicationMain(argc, argv, nil, NSStringFromClass([<#AppDelegateClassName#> class]));
}
@catch (NSException *exception) {
NSLog(@"Exception Thrown: %@", [exception name]);
NSLog(@"Stack Trace:\n\n%@", [exception callStackSymbols]);
[exception raise];
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment