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 must be visible to work
The debugger will not display events when it is not the active window 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.
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.
Older SDK versions send detailed events for every evaluation
The minimum required version for each platform SDK to use summary events is:
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.
LD Relay: 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 two 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.
Click on a user to see individual event information.
Experimentation events only display for customers who have Experimentation enabled. To learn more, read Running A/B tests.
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.