Debugging

Different platforms have different ways to enable each debug functionality. They may be enabled

  • through APIs exposed on the Glean singleton,
  • through environment variables set at run time,
  • or through platform specific debug tools.

Platform Specific Information

Check out the platform specific guides on how to use Glean's debug functionalities.

  1. Debugging applications using the Glean Android SDK
  2. Debugging applications using the Glean iOS SDK
  3. Debugging applications using the Glean Python SDK
  4. Debugging applications using the Glean JavaScript SDK

Features

The Glean SDKs provides four debugging features.

Log Pings

This is either true or false and will cause all subsequent pings that are submitted, to also be echoed to the device's log.

Debug View Tag

This will tag all subsequent outgoing pings with the provided value, in order to identify them in the Glean Debug View.

Source Tags

This will tag all subsequent outgoing pings with a maximum of 5 comma-separated tags.

Send Pings

This feature is only available for the Kotlin and Swift SDKs.

This expects the name of a ping and forces its immediate submission.