6

I just added FIRAnalyticsDebugEnabled as a launch argument as was suggested in several places:

  1. The Xcode console:

    6.5.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see [https://help.apple.com/xcode/mac/8.0/])
    
  2. The Get Started with Google Analytics for iOS guide:

    enter image description here

  3. Etc.

Once I enabled it, I started seeing output such as:

Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: session_start (_s), {
    firebase_debug (_dbg) = 1;
    firebase_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) = 123;
    session_number (_sno) = 2;
}

Now that I know that events are being output properly, I want to disable this as it is spamming the console. However, none of those resources mentioned above talk about how to disable it.

How do I disable it?

I tried removing the launch argument, but the logs still appear.


Note that this is not a duplicate of these similar questions:

Senseful
  • 86,719
  • 67
  • 308
  • 465

1 Answers1

13

Many places will tell you to add the launch argument -FIRDebugDisabled but because I didn't have it prior to enabling -FIRAnalyticsDebugEnabled, that seems odd.

It took a while to find, but the page on DebugView has some key information:

To enable Analytics Debug mode on your development device, specify the following command line argument in Xcode :

-FIRDebugEnabled

This behavior persists until you explicitly disable Debug mode by specifying the following command line argument:

-FIRDebugDisabled

The key here is that the "behavior persists." It appears that -FIRAnalyticsDebugEnabled is behaving the exact same way in that it persists: you only need to run it once.

Thus to get back to the state you were in before running with -FIRAnalyticsDebugEnabled:

  1. Run the app once with the -FIRDebugDisabled launch argument.
  2. Remove the launch argument.
Community
  • 1
  • 1
Senseful
  • 86,719
  • 67
  • 308
  • 465