Import name: Sentry.debugIntegration

This integration allows you to inspect the contents of a processed event and hint object that gets passed to beforeSend or beforeSendTransaction. It will always run as the last integration, no matter when it was registered.

Note that this is different than setting debug: true (which will enable debug logging in the console) in your Sentry.init options.

This integration requires you to install @sentry/integrations next to your main SDK package.

import * as Sentry from "@sentry/browser";
import { debugIntegration } from "@sentry/integrations";

  dsn: "",
  integrations: [debugIntegration()],

Type: boolean

Trigger DevTools debugger instead of using console.log.

Type: boolean

Stringify event before passing it to console.log.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").