[Crash Handling] Enable exceptions for debugging

Debug builds should have exceptions enabled, rather than crashing.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-28 20:22:51 -07:00
parent a1a8607a84
commit 112366c850
1 changed files with 4 additions and 0 deletions

View File

@ -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];