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