[Crash Handling] Enable exceptions for debugging

Debug builds should have exceptions enabled, rather than crashing.

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

View File

@ -150,7 +150,11 @@ static AppController *kAppController = nil;
}
- (void)awakeFromNib {
#if DEBUG
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(NO) }];
#else
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }];
#endif
[FIRApp configure];