Minimal Express example wired to DebugBundle's Node SDK.
- SDK init in a plain Express server
- Explicit error capture plus request middleware wiring
- A simple path to inspect the resulting incident with the CLI
- Install dependencies with
pnpm install. - Copy
.env.exampleto.envand fill in your project token. - Start the app with
pnpm start. - Visit
http://localhost:3005/boomto trigger an example failure.
- Run
debugbundle setup --non-interactivein the repo you want to inspect from. - Trigger the sample error.
- List or inspect the incident with
debugbundle inspect <incident-id>.
server.mjscontains the Express server and DebugBundle SDK initialization..env.exampledocuments the required runtime variables.