Debugging events

Firebase offers a feature for debugging events. In the Firebase console, DebugView enables you to see the events data logged by the debug application in real time. This is very useful for validating custom events and other data. 

To enable the debug mode, you can enter the following CLI command in Terminal:

adb shell setprop debug.firebase.analytics.app <package_name>

By default, every 60 seconds, the command fires the event to Firebase. There is also a device selector feature, in case we are looking for any specific data. Use DebugView for test events fired from the test device, as shown in the following screenshot:

In

Get Mastering Firebase for Android Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.