From 97fb5c2af17305c0d96a12830de039c5f420aec6 Mon Sep 17 00:00:00 2001 From: themiswang <themisw@google.com> Date: Mon, 11 Dec 2023 14:26:04 -0500 Subject: [PATCH] Adding log for user who have debugger attached (#12186) --- Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c b/Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c index 0d586592648..69733018728 100644 --- a/Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c +++ b/Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c @@ -109,6 +109,8 @@ static void FIRCLSSignalInstallHandlers(FIRCLSSignalReadContext *roContext) { void FIRCLSSignalCheckHandlers(void) { if (_firclsContext.readonly->debuggerAttached) { + // 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. + 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"); return; }