[Crash Handling] Enable exceptions for debugging
Debug builds should have exceptions enabled, rather than crashing. Signed-off-by: Christopher Snowhill <kode54@gmail.com>lastfm
parent
f5412fbfec
commit
e491de0a93
|
@ -150,7 +150,11 @@ static AppController *kAppController = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)awakeFromNib {
|
- (void)awakeFromNib {
|
||||||
|
#if DEBUG
|
||||||
|
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(NO) }];
|
||||||
|
#else
|
||||||
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }];
|
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }];
|
||||||
|
#endif
|
||||||
|
|
||||||
[FIRApp configure];
|
[FIRApp configure];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue