Skip to content

Commit 97fb5c2

Browse files
authored
Adding log for user who have debugger attached (#12186)
1 parent c6c7752 commit 97fb5c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ static void FIRCLSSignalInstallHandlers(FIRCLSSignalReadContext *roContext) {
109109

110110
void FIRCLSSignalCheckHandlers(void) {
111111
if (_firclsContext.readonly->debuggerAttached) {
112+
// Adding this log to remind user deattachs from the debugger. Besides FIRCLSSignal, this logic is on FIRCLSMachException and FIRCLSException as well. Only log once since the check is same.
113+
FIRCLSSDKLog("[Crashlytics] App is attached to a debugger, to see the crash reports please deattach from the debugger, https://firebase.google.com/docs/crashlytics/get-started?platform=ios#force-test-crash");
112114
return;
113115
}
114116

0 commit comments

Comments
 (0)