- (You need docker)
- Save the
docker-compose.yml
file. - Run
docker-compose up
in the same folder as thedocker-compose.yml
file.- Update buggregator by running
docker-compose pull
- Update buggregator by running
- Buggregator is at http://127.0.0.1:8000/#/
Learn more at https://docs.buggregator.dev/
Make sure
WP_ENVIRONMENT_TYPE
is set tolocal
. Local (by WPEngine) does that by default.
- Install WP Sentry. You don't have to activate it. We will load it early, to catch errors early.
- In
wp-config.php
add:
// NOTE: WP_ENVIRONMENT_TYPE must be defined and set to 'local'. Uncomment the line below if it's not set by the server
// define( 'WP_ENVIRONMENT_TYPE', 'local' );
if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'local' === WP_ENVIRONMENT_TYPE ) {
define( 'WP_SENTRY_PHP_DSN', 'http://[email protected]:8000/1' );
define( 'WP_SENTRY_ERROR_TYPES', E_ALL & ~E_NOTICE & ~E_USER_NOTICE );
require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
}
Learn more at https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov-file#usage
- Install ray in your project using composer:
composer --dev require spatie/ray
- Copy
ray.php
to the root of your WordPress site - Now you can dump to buggregator, from your project, using
\ray( $var );
Save mu-buggregator-smtp.php
in your mu-plugins
folder