A simple local website for testing Sentry error reporting. Trigger various types of JavaScript errors to verify your Sentry integration is working correctly.
-
Open the website β Just open
index.htmlin your browser, or start a local server:# Python 3 python -m http.server 8080 # Node.js (if you have npx) npx serve .
-
Enter your Sentry DSN β Get this from your Sentry project settings:
Settings β Client Keys (DSN) -
Click Initialize β This sets up the Sentry SDK
-
Trigger errors β Click any error card to send test errors to Sentry
| Error Type | Description |
|---|---|
| Reference Error | Calls an undefined variable |
| Type Error | Calls a method on undefined |
| Thrown Exception | Explicitly throws a new Error |
| Promise Rejection | Unhandled promise rejection |
| Capture Message | Sends a custom message (not an error) |
| Capture Exception | Manually captures an exception via Sentry API |
| With Breadcrumbs | Adds navigation breadcrumbs before the error |
| With User Context | Sets user info and tags before the error |
| Async Error | Throws an error inside an async function |
- π DSN saved locally (localStorage) β no need to re-enter
- π¨ Dark theme, easy on the eyes
- π No build step required β just HTML/CSS/JS
- π± Responsive design
- Go to sentry.io and sign in
- Select or create a project
- Go to Settings β Client Keys (DSN)
- Copy the DSN URL
- The page loads the Sentry SDK from their CDN
- Debug mode is enabled so you can see Sentry logs in the browser console
- Your DSN is stored in localStorage and never sent anywhere except to Sentry