The debug addon extends REDAXO with tools for better performance and error analysis.
It is based on Clockwork and thus offers a browser-based interface, to visualise the processes within the REDAXO CMS.
Clockwork is a development tool for PHP available right in your browser. Clockwork gives you an insight into your application runtime - including request data, performance metrics, log entries, database queries, cache queries, redis commands, dispatched events, queued jobs, rendered views and more - for HTTP requests, commands, queue jobs and tests. Clockwork Project
It can be used directly in the browser or with a separate browser extension. A detailed description and information on optional browser extensions are available on the Clockwork website.
The addon is intended for development only. Add it as a dev dependency and install it via the REDAXO console:
composer require --dev redaxo/debug:^2.0@dev
bin/console addon:install debugThe addon integrates information on the following classes in Clockwork:
Redaxo\Core\Database\SqlRedaxo\Core\Log\LoggerRedaxo\Core\Util\TimerRedaxo\Core\ExtensionPoint\Extension/Redaxo\Core\ExtensionPoint\ExtensionPoint
To make your own PHP code visible in Clockwork and to analyse it, it can be measured using Redaxo\Core\Util\Timer:
use Redaxo\Core\Util\Timer;
Timer::measure('a-representative-label', function () {
// arbitrary php code
});