Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.15 KB

File metadata and controls

35 lines (24 loc) · 1.15 KB

Browser Live Debugger

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.

Usage

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.

Troubleshooting

Need help? Contact Datadog Support.