[Crash Handling] Enable exceptions for debugging
Debug builds should have exceptions enabled, rather than crashing. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
a1a8607a84
commit
112366c850
1 changed files with 4 additions and 0 deletions
|
@ -152,7 +152,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 a new issue