If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
This add-on integrates Buggregator into your DDEV project. Buggregator is a powerful debugging server that helps with application debugging and monitoring by collecting logs, profiling data, and other debugging information.
ddev add-on get iljapolanskis/ddev-buggregator
ddev restart
After installation, make sure to commit the .ddev directory to version control.
| Command | Description |
|---|---|
ddev describe |
View service status and used ports for Buggregator |
ddev logs -s buggregator |
Check Buggregator logs |
Open https://<project>.ddev.site:8000 in your browser to access the Buggregator web interface.
From inside the web container Buggregator is reachable by its service name, buggregator.
Set these variables in your application’s .env (see the Buggregator documentation for framework-specific setup):
| Feature | Port | Configuration |
|---|---|---|
| Sentry | 8000 | SENTRY_DSN=http://sentry@buggregator:8000/1 |
| Ray | 8000 | RAY_HOST=ray@buggregator, RAY_PORT=8000 |
| Inspector | 8000 | INSPECTOR_URL=http://inspector@buggregator:8000, INSPECTOR_API_KEY=test |
| XHProf | 8000 | PROFILER_ENDPOINT=http://profiler@buggregator:8000 |
| HTTP dumps | 8000 | http://http-dump@buggregator:8000 |
| SMTP | 1025 | MAILER_DSN=smtp://buggregator:1025 |
| VarDumper | 9912 | VAR_DUMPER_FORMAT=server, VAR_DUMPER_SERVER=buggregator:9912 |
| Monolog | 9913 | SocketHandler('buggregator:9913') |
Only the web UI (port 8000) is published through the DDEV router. SMTP, VarDumper and Monolog are plain TCP services and are only reachable from other containers in the project.
Customize the add-on with ddev dotenv set, which writes to .ddev/.env.buggregator:
# Pin the Buggregator image version
ddev dotenv set .ddev/.env.buggregator --buggregator-image=ghcr.io/buggregator/server:latest
# Serve the web UI on another router port, e.g. https://<project>.ddev.site:8100
ddev dotenv set .ddev/.env.buggregator --buggregator-http-port=8100
ddev restart
| Variable | Default | Description |
|---|---|---|
BUGGREGATOR_IMAGE |
ghcr.io/buggregator/server:latest |
Docker image to use |
BUGGREGATOR_HTTP_PORT |
8000 |
Router port for the HTTPS web UI |
Variables in .ddev/.env.buggregator are also passed into the Buggregator container, so any server setting can be configured there too.
Here’s an example of how to send logs to Buggregator from within your PHP application:
First, install the required PHP library:
composer require monolog/monolog
Then use it in your code (playground.php file):
<?php
require_once 'vendor/autoload.php';
use Monolog\Logger;
use Monolog\Handler\SocketHandler;
use Monolog\Formatter\JsonFormatter;
// Create a log channel
$logger = new Logger('myapp');
// Create socket handler for Buggregator
$handler = new SocketHandler('buggregator:9913');
$handler->setFormatter(new JsonFormatter());
$logger->pushHandler($handler);
// Send different log levels to Buggregator
$logger->info('Application started');
$logger->warning('This is a warning message');
$logger->error('An error occurred', ['user_id' => 123, 'action' => 'login']);
$logger->debug('Debug information', ['query' => 'SELECT * FROM users']);
Note: This example uses the default Buggregator service hostname (buggregator) which is accessible from within the DDEV environment.
ddev exec php playground.php
Contributed and maintained by @iljapolanskis
This add-on uses the Buggregator Server Docker image as the base for the debugging service.
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.