Datadog Live Debugger enables you to capture function execution snapshots, evaluate conditions, and collect runtime data from your application without modifying source code.
See the dedicated Datadog documentation for more details.
To start collecting data, add @datadog/browser-debugger to your package.json file, then initialize it with:
import { datadogDebugger } from '@datadog/browser-debugger'
datadogDebugger.init({
applicationId: '<DATADOG_APPLICATION_ID>',
clientToken: '<DATADOG_CLIENT_TOKEN>',
site: '<DATADOG_SITE>',
service: 'my-web-application',
// env: 'production',
// version: '1.0.0',
})If Datadog RUM is also initialized on the page, debugger snapshots automatically include RUM context (session, view, user action) without any additional configuration.
Need help? Contact Datadog Support.