Skip to content

Commit 245bbae

Browse files
authored
Document how to initialize Crashlytics with Xcode debugger attached (#7799)
1 parent 9f36662 commit 245bbae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Crashlytics/Crashlytics/Components/FIRCLSContext.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ bool FIRCLSContextInitialize(FIRCLSInternalReport* report,
197197
FIRCLSContextAppendToRoot(rootPath, fileName);
198198
});
199199

200+
// To initialize Crashlytics handlers even if the Xcode debugger is attached, replace this check
201+
// with YES. Note that this is only possible to do on an actual device as it will cause the
202+
// simulator to crash.
200203
if (!_firclsContext.readonly->debuggerAttached) {
201204
#if CLS_SIGNAL_SUPPORTED
202205
dispatch_group_async(group, queue, ^{

0 commit comments

Comments
 (0)