Read time: 2 minutes
Last edited: Jun 29, 2021
This topic explains how to use the debugger.
The debugger gives you real-time insight into the events your application is sending to LaunchDarkly, so you can ensure that you've set LaunchDarkly up correctly. Different types of events appear, in detail or in summary, depending on what you want to see.
The debugger shows you a real-time stream of events arriving in LaunchDarkly from your app. When you first open the debugger, it connects to the event stream to show live events as they appear. Establishing the connection can take up to 30 seconds. In high-volume environments, you may see sampled events, rather than 100% of events.
The debugger does not display events when it is not the active tab in your browser. Leave it open and visible to see events as they occur. If you need to click around in your app to generate events, open the app in a second window.
The debugger displays evaluation counts and variation breakdowns for each flag evaluated since you opened the debugger. Click on a flag or select it from the dropdown to access individual event information.
Here is an image of the debugger:
Flag evaluation events display as a summary. This saves data load. To get detailed evaluation event information for a flag, select it and click Debug.
This will temporarily enables detailed events for that flag, which appear as they are received. View additional information, including the user attributes used for evaluation, by clicking on an individual event.
The minimum required version for each platform SDK to use summary events is:
- .NET: 5.0.0
- Go: 4.0.0
- Java: 4.0.0
- Node: 5.0.0
- Python: 6.0.0
- Ruby: 4.0.0
- Android: 2.4.0
- iOS: 2.13.0
- PHP: The PHP SDK does not itself support summary events. However, when PHP is used with LD Relay, the LD Relay event forwarding mode has the ability to turn the events received from the PHP SDK into summary events. This requires that you are using PHP SDK version 3.1.0 or higher. If you are using LD Relay with PHP you will need to upgrade LD Relay to version 4.0.0 or higher. Other SDKs do not require an LD Relay update to use summary events.
There are three types of user events:
- Identify events are explicitly triggered by your application code
- Index events are automatically triggered by the LaunchDarkly SDK based on flag evaluations
- Alias events are triggered when your application calls the Alias SDK method, and when an anonymous user identifies as a non-anonymous user
Click on a user to see individual event information.
Here is an image of user events in the debugger:
Experimentation events only display for customers who have Experimentation enabled. To learn more, read Experimentation.
Here is an image of the Experimentation events tab:
There are three types of experiment events:
- Click events
- Page view events
- Custom events
These events correspond to the kind of metric that triggered the event.