Debug
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.
Copied
import * as Sentry from "@sentry/browser";
import { Debug } from "@sentry/integrations";
Sentry.init({
dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
integrations: [new Debug()],
});
Options
debugger
Type: boolean
Trigger DevTools debugger instead of using console.log
.
stringify
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!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
- Package:
- npm:@sentry/nextjs
- Version:
- 7.83.0
- Repository:
- https://github.com/getsentry/sentry-javascript