GitPedia

Server

Buggregator — a single-binary debugging server for PHP. Captures exceptions, dumps, emails, profiling, logs in real-time UI. Sentry, Ray, VarDumper, SMTP, Monolog, Inspector, XHProf and more.

From buggregator·Updated June 25, 2026·View on GitHub·

**One binary. Exceptions, dumps, emails, profiling, logs — all in one real-time UI. Works with the SDKs you already have. No cloud account. No code changes. No runtime dependencies.** The project is written primarily in Go, first published in 2022. It has gained significant community traction with 1,060 stars and 38 forks on GitHub. Key topics include: bugregator, debugging, hacktoberfest, http-dump, laravel.

Latest release: v2.3.1
June 9, 2026View Changelog →

Debug everything. Install nothing.

<a href="https://discord.gg/vDsCD3EKUB"><img src="https://img.shields.io/badge/discord-chat-magenta.svg"></a>
Twitter
Support me on Patreon
CI
Downloads
SSL Certificate

<a href="https://www.producthunt.com/posts/buggregator?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-buggregator" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=478631&theme=light" alt="Buggregator - The&#0032;Ultimate&#0032;Debugging&#0032;Server&#0032;for&#0032;PHP | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

One binary. Exceptions, dumps, emails, profiling, logs — all in one real-time UI. Works with the SDKs you already have. No cloud account. No code changes. No runtime dependencies.

Buggregator v2.0 is a complete rewrite in Go — a single self-contained binary with an embedded SQLite database, web UI, and WebSocket server. No PHP runtime, no RoadRunner, no Centrifugo, no external database.

Serverv2.0.0
Frontendv1.30.0

Looking for the PHP version? See the 1.x branch.

Watch our introduction video on YouTube

Quick Start

bash
docker run --pull always \ -p 127.0.0.1:8000:8000 \ -p 127.0.0.1:1025:1025 \ -p 127.0.0.1:9912:9912 \ -p 127.0.0.1:9913:9913 \ ghcr.io/buggregator/server:latest

Open http://127.0.0.1:8000 and start debugging. That's it.

Standalone Binary

bash
# Download the latest release curl -sL https://github.com/buggregator/server/releases/latest/download/buggregator-linux-amd64 -o buggregator chmod +x buggregator ./buggregator

No Docker? No binary? Use Buggregator Trap — a lightweight PHP CLI alternative.

Key Features

Xhprof Profiler

Watch our intro video about profiler on YouTube.

xhprof

Symfony VarDumper Server

var-dumper

Spatie Ray Debug Tool

ray

Fake SMTP Server

smtp

Sentry Compatibility

sentry

Monolog Server

monolog

Inspector Compatibility

inspector

HTTP Requests Dump Server

http dumps

Supported Modules

ModuleTypeTransportDescription
SentrysentryHTTPError tracking (gzip, envelope format)
RayrayHTTPDebug tool for PHP
VarDumpervar-dumpTCP :9912Symfony VarDumper (embedded PHP parser)
InspectorinspectorHTTPAPM monitoring
MonologmonologTCP :9913Logging (newline-delimited JSON)
SMTPsmtpTCP :1025Email capture (RFC822, multipart, attachments)
SMSsmsHTTP /smsSMS gateway capture (41 providers)
HTTP Dumphttp-dumpHTTPCatch-all HTTP request capture
ProfilerprofilerHTTPXHProf profiling (call graph, flame chart, top functions)
WebhookswebhooksHTTP POST notifications when events are received

Configuration

The server works with zero configuration. Optionally, create a buggregator.yaml:

yaml
server: addr: ":8000" database: driver: sqlite dsn: ":memory:" # or "data.db" for persistence # Prometheus metrics (optional) metrics: enabled: true addr: ":9090" # separate server, or empty to use main HTTP tcp: smtp: addr: ":1025" monolog: addr: ":9913" var-dumper: addr: ":9912" # Authentication (disabled by default) # Supports: auth0, google, github, keycloak, gitlab, oidc (generic) auth: enabled: true provider: auth0 provider_url: https://your-tenant.us.auth0.com client_id: your-client-id client_secret: your-client-secret callback_url: http://localhost:8000/auth/sso/callback scopes: openid,email,profile jwt_secret: your-secret-for-signing-tokens # MCP — AI assistant integration (disabled by default) mcp: enabled: true transport: socket # "socket" or "http" socket_path: /tmp/buggregator-mcp.sock # Enable/disable modules (all enabled by default) modules: sentry: true ray: true var-dump: true inspector: true monolog: true smtp: true sms: true http-dump: true profiler: true # Webhooks — HTTP POST notifications on events webhooks: - event: "*" url: https://slack.example.com/webhook headers: Authorization: "Bearer token" verify_ssl: false retry: true - event: sentry url: https://pagerduty.example.com/alert # Pre-defined projects projects: - key: my-app name: My Application

Configuration Priority

  1. CLI flags (--http-addr :9000)
  2. Environment variables (HTTP_ADDR=:9000)
  3. Config file (buggregator.yaml)
  4. Defaults

Environment Variables

VariableDefaultDescription
HTTP_ADDR:8000HTTP listen address
DATABASE_DSN:memory:SQLite DSN
SMTP_ADDR:1025SMTP listen address
MONOLOG_ADDR:9913Monolog TCP address
VAR_DUMPER_ADDR:9912VarDumper TCP address
CLIENT_SUPPORTED_EVENTSallComma-separated list of enabled modules
METRICS_ENABLEDfalseEnable Prometheus metrics
METRICS_ADDRSeparate metrics server address
AUTH_ENABLEDfalseEnable OAuth2/OIDC authentication
AUTH_PROVIDERoidcProvider: auth0, google, github, keycloak, gitlab, oidc
AUTH_PROVIDER_URLOIDC issuer URL
AUTH_CLIENT_IDOAuth2 client ID
AUTH_CLIENT_SECRETOAuth2 client secret
AUTH_CALLBACK_URLOAuth2 callback URL
AUTH_SCOPESopenid,email,profileComma-separated OAuth2 scopes
AUTH_JWT_SECRETSecret for signing internal JWT tokens
MCP_ENABLEDfalseEnable MCP server
MCP_TRANSPORTsocketsocket (local) or http (remote)
MCP_SOCKET_PATH/tmp/buggregator-mcp.sockUnix socket path
MCP_ADDR:8001HTTP listen address for MCP
MCP_AUTH_TOKENBearer token for HTTP MCP transport

PHP Client Configuration

Laravel / Symfony

env
# .env SENTRY_LARAVEL_DSN=http://sentry@localhost:8000/default RAY_HOST=ray@localhost RAY_PORT=8000 VAR_DUMPER_SERVER=localhost:9912 LOG_SOCKET_URL=localhost:9913 MAIL_HOST=localhost MAIL_PORT=1025 INSPECTOR_URL=http://inspector@localhost:8000 INSPECTOR_API_KEY=test PROFILER_ENDPOINT=http://profiler@localhost:8000 HTTP_DUMP_ENDPOINT=http://http-dump@localhost:8000 SMS_ENDPOINT=http://localhost:8000/sms

MCP (Model Context Protocol)

Buggregator includes a built-in MCP server that lets AI assistants (Claude Code, Cursor, etc.) query and analyze debugging data directly.

AI Assistant --stdio--> buggregator mcp --unix socket--> buggregator (main process)

Setup

Claude Code (~/.claude.json or project settings):

json
{ "mcpServers": { "buggregator": { "command": "./buggregator", "args": ["mcp"] } } }

Cursor (.cursor/mcp.json):

json
{ "mcpServers": { "buggregator": { "command": "./buggregator", "args": ["mcp"] } } }

Available Tools

ToolDescriptionKey Parameters
events_listList captured eventstype, project, limit (default 20, max 100)
event_getGet full event payloaduuid
event_deleteDelete an eventuuid
profiler_summaryProfile overview: totals, slowest function, memory hotspotuuid
profiler_topTop functions sorted by metricuuid, metric, limit
profiler_call_graphFiltered call graph with significant pathsuuid, metric, percentage, threshold
sentry_eventStructured error: exception chain, stack traces, tagsuuid
vardump_getVariable value with HTML strippeduuid

Building from Source

Prerequisites

  • Go 1.22+
  • PHP 8.1+ with Composer (for VarDumper module)
  • Make
bash
make build # Full build: downloads frontend, builds PHP parser, compiles binary make run # Build and run make build-cross GOOS=darwin GOARCH=arm64 # Cross-compile

Documentation

See the documentation for detailed installation and usage instructions.

Contributing

We enthusiastically invite you to contribute to Buggregator Server! Whether you've uncovered a bug, have innovative feature suggestions, or wish to contribute in any other capacity, we warmly welcome your participation. Simply open an issue or submit a pull request on our GitHub repository to get started.

Read more about how to contribute here.

License

Buggregator is open-sourced software licensed under the MIT License.

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from buggregator/server via the GitHub API.Last fetched: 6/28/2026