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