Debug

Allows you to inspect the contents of a processed event and hint object that gets passed to beforeSend or beforeSendTransaction. (deprecated)

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.

Copied
import * as Sentry from "@sentry/cloudflare";

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [Sentry.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").