Skip to content

Commit

Permalink
Adding log for user who have debugger attched
Browse files Browse the repository at this point in the history
  • Loading branch information
themiswang committed Dec 11, 2023
1 parent c6c7752 commit c6a3033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Crashlytics/Crashlytics/Handlers/FIRCLSSignal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c6a3033

Please sign in to comment.