redaxo/debug

REDAXO debug addon

Maintainers

Package info

github.com/redaxo/debug

Homepage

Type:redaxo-addon

pkg:composer/redaxo/debug

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

2.x-dev 2026-06-03 10:23 UTC

This package is auto-updated.

Last update: 2026-06-03 10:29:00 UTC


README

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.

Installation

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 debug

Usage

The addon integrates information on the following classes in Clockwork:

  • Redaxo\Core\Database\Sql
  • Redaxo\Core\Log\Logger
  • Redaxo\Core\Util\Timer
  • Redaxo\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
});