loki / magento2-debugger

loki/magento2-debugger

Developer debugger toolbar with various Loki Component related tabs

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0

Loki_Debugger

This Magento 2 module is an add-on package for adding a debugger toolbar to the Loki_Components module.

Installation

Install this package via composer (assuming you have setup the composer.yireo.com repository correctly already):

composer require loki/magento2-debugger

Next, enable this module:

bin/magento module:enable Loki_Debugger

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[Unreleased]

[1.1.3] - 22 April 2026

Fixed

  • Add message to RedirectException

[1.1.2] - 12 March 2026

Fixed

  • Make position configurable

[1.1.1] - 13 February 2026

Fixed

  • Move close button to top of toolbar
  • Do not escape child blocks
  • Prevent JS error when there are no tabs

[1.1.0] - 12 February 2026

Added

  • Add scrolling within toolbar
  • Make tabs of toolbar extensable
  • Fix position of debug bar in bottom

Fixed

  • Debugger was never properly set as global component target

[1.0.11] - 03 February 2026

Fixed

  • Rewrite to composable AbstractComponentContext

[1.0.10] - 23 January 2026

Fixed

  • Add new GitHub Action workflows
  • Copy generic CI/CD files

[1.0.9] - 21 November 2025

Fixed

  • Convert sort order in HTML hint to 0
  • Debug sortOrder
  • Update composer keywords
  • Update composer keywords
  • Update composer keywords

[1.0.8] - 22 October 2025

Fixed

  • Do not escape $css() with escapeHtmlAttr() but escapeHtml()

[1.0.7] - 01 October 2025

Fixed

  • Move HTML hints from LokiTheme_LumaComponents to Loki_Debugger
  • Update README

[1.0.6] - 23 September 2025

Fixed

  • Rename loki.script from container to block to allow caching
  • Change containers into blocks to allow for caching
  • Add .prevent modifier to @click event handler
  • Rename Alpine store checkout to LokiCheckout, components to LokiComponents
  • Rename loki-scripts to loki.script

[1.0.5] - 28 August 2025

Fixed

  • Add CI files

[1.0.4] - 21 August 2025

Fixed

  • Fix wrong Alpine component name
  • Move JSON directive into separate template
  • Declare used PHP namespaces
  • Document latest version of template
  • Add missing strict_types declaration

[1.0.3] - 18 August 2025

Fixed

  • Lower requirements to PHP 8.1

[1.0.2] - 18 August 2025

Fixed

  • A11Y issues
  • Fix a11y tab attributes

[1.0.1] - 06 August 2025

Fixed

  • Lower PHP requirement to PHP 8.2+

[1.0.0] - 21 July 2025

Fixed

  • Rename PHP namespace from Yireo_LokiComponents to Loki_Components
  • Update deps with loki/magento2-components

[0.1.0] - 10 July 2025

Refactor

  • Rename Yireo_LokiComponentsDebugger to Loki_Debugger
  • Rename yireo/magento2-loki-components-debugger to loki/magento2-debugger

[0.0.7] - 13 May 2025

Fixed

  • Update MODULE.json
  • Modules should NOT determine the page layout for reusable handles
  • Allow PHP 8.4 in CI

[0.0.6] - 25 April 2025

Fixed

  • Allow to upgrade to LokiComponents 1.0
  • Fix CSP issue with new x-json directive
  • Move scripts from "before.body.end" to new "loki-scripts" container

[0.0.5] - 04 April 2025

Fixed

  • Add keywords to composer.json
  • Ignore CICD file in PHPCS
  • Add new MODULE.json with meta-information

[0.0.4] - 11 March 2025

Fixed

  • Add module dependencies

[0.0.3] - 24 February 2025

Fixed

  • Default target definitions were dropped when cache was refreshed from non-frontend

[0.0.2] - 22 February 2025

Fixed

  • Add proper README
  • Replace TODO.md with TODO.json
  • Add CHANGELOG and TODO

[0.0.1] - 21 January 2025

  • Initial release
Versions
Version Stability QA Status Compatibility Released
1.1.3 stable Fail Magento 2.4.7-2.4.9 Details 2026-04-22 09:02:45
1.1.2 stable Not tested Not yet tested Details 2026-03-12 08:57:51
1.1.1 stable Not tested Not yet tested Details 2026-02-13 14:26:11
1.1.0 stable Not tested Not yet tested Details 2026-02-12 09:13:18
1.0.11 stable Not tested Not yet tested Details 2026-02-03 13:12:00
1.0.10 stable Not tested Not yet tested Details 2026-01-23 18:42:13
1.0.9 stable Not tested Not yet tested Details 2025-11-21 18:23:20
1.0.8 stable Not tested Not yet tested Details 2025-10-22 11:47:21
1.0.7 stable Not tested Not yet tested Details 2025-10-01 10:17:30
1.0.6 stable Not tested Not yet tested Details 2025-09-23 14:44:35
1.0.5 stable Not tested Not yet tested Details 2025-08-28 13:51:22
1.0.4 stable Not tested Not yet tested Details 2025-08-21 06:26:25
1.0.3 stable Not tested Not yet tested Details 2025-08-18 14:14:54
1.0.2 stable Not tested Not yet tested Details 2025-08-18 14:12:27
1.0.1 stable Not tested Not yet tested Details 2025-08-06 18:37:18
1.0.0 stable Not tested Not yet tested Details 2025-07-21 18:01:45
0.1.0 stable Not tested Not yet tested Details 2025-07-10 13:07:37
0.0.7 stable Not tested Not yet tested Details 2025-05-13 10:25:27
0.0.6 stable Not tested Not yet tested Details 2025-04-25 17:33:05
0.0.5 stable Not tested Not yet tested Details 2025-04-04 14:00:55
0.0.4 stable Not tested Not yet tested Details 2025-03-11 11:28:25
0.0.3 stable Not tested Not yet tested Details 2025-02-24 13:39:09
0.0.2 stable Not tested Not yet tested Details 2025-02-22 09:02:39
0.0.1 stable Not tested Not yet tested Details 2025-01-17 10:51:11

Requires 3

Package Constraint
loki/magento2-components ^2.0
loki/magento2-css-utils ^1.0
magento/framework ^103.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 7 7 warnings (ruleset: Magento2)
PHPMD Pass 0
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 9 9
2.4.8 9 9
2.4.9 8 8

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0

More from Loki Extensions

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.