A desktop notification for each new error
Open Buggregator at http://localhost:8000 and turn on Settings › Notifications › Desktop notifications. Each new Sentry error from your app then shows a system notification while you work in another window. Several errors within 10 seconds come as one notice, and a click opens the error.
Steps
1. Start Buggregator on your machine
Notifications work only when the page is https or localhost, so bind the port to your machine.
docker run --pull always \
-p 127.0.0.1:8000:8000 \
ghcr.io/buggregator/server:latest2. Open it as localhost
Open http://localhost:8000. A LAN address or a host name such as http://buggregator:8000 over plain http does not get notifications.
3. Turn notifications on
Go to Settings › Notifications and switch on Desktop notifications. The browser asks for permission once and shows a test notice.
4. Send an error and switch away
Point your app's Sentry DSN at Buggregator, for example:
SENTRY_LARAVEL_DSN=http://sentry@127.0.0.1:8000/1Keep the Buggregator tab open and go back to your editor. When the app throws an exception, or logs a message at level error or fatal, a notice pops up. Three errors close together come as «3 new errors». Click the notice to open the error.
5. Add an app icon badge if you like
Install Buggregator as an app from the install icon in the address bar of Chrome or Edge. While its window is in the background, the app icon shows how many new events of the current project arrived. The badge works on Windows and macOS.
Why it works
The page listens for new events over WebSocket and uses the browser's notification permission. It notifies only while no Buggregator tab is in front of you, and with several tabs open only one of them notifies. The tab must stay open: a closed tab shows nothing. Chrome on Android does not show notifications from a page.
Docs: docs.buggregator.dev/config/sentry.html#desktop-notifications
Requires Buggregator v2.13.0+
Related tips
- Sentry
See what happened right before the exception
Point your Laravel Sentry DSN at Buggregator. Each error shows its breadcrumbs, request, tags and stack trace on your laptop.
- Sentry
See a Laravel request's Sentry trace as a waterfall
Turn on Sentry tracing in Laravel and send it to Buggregator. Every span of a request shows on a timeline, and errors link to their trace.
- Sentry
Laravel errors in Sentry's UI style, no Sentry account
Set SENTRY_LARAVEL_DSN to Buggregator. Each Laravel exception shows locally with its stack trace, request and breadcrumbs. No account, no limits.
- Sentry
Test the Sentry feedback widget before users see it
Point the Sentry browser SDK at Buggregator and send feedback from the widget or captureFeedback. Name, email and message show on the error.
Checked on with Buggregator v2.13.0