PHPackages                             daseraf/magento2-debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. daseraf/magento2-debug

ActiveMagento2-module[Debugging &amp; Profiling](/categories/debugging)

daseraf/magento2-debug
======================

Magento 2 debug module based on Magento 1 Profiler with some extra features.

2.2.4.2(4mo ago)12513[1 PRs](https://github.com/Daseraf/magento2-debug/pulls)1OSL-3.0PHP

Since Mar 30Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Daseraf/magento2-debug)[ Packagist](https://packagist.org/packages/daseraf/magento2-debug)[ RSS](/packages/daseraf-magento2-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (24)Used By (1)

Magento 2 - Debug module
========================

[](#magento-2---debug-module)

Module for debugging Magento 2 performance. It works without overwriting any core files and it can be installed with composer.

[![toolbar](./view/base/web/images/readme/homepage.png)](./view/base/web/images/readme/homepage.png)

#### The module supports Hyva Theme!

[](#the-module-supports-hyva-theme)

[![hyva](./view/base/web/images/readme/hyva.png)](./view/base/web/images/readme/hyva.png)

#### Important - the module is not intended to work in a production environment!

[](#important---the-module-is-not-intended-to-work-in-a-production-environment)

Installation
------------

[](#installation)

1. Enable developer mode `php bin/magento deploy:mode:set developer`
2. Install module via composer `composer require daseraf/magento2-debug`
3. Register module `php bin/magento setup:upgrade`
4. Enable profiler in configuration: `Stores -> Configuration -> Advanced -> Debug`
5. Clear cache `php bin/magento c:c`

#### Important! If you use the interceptor generator from [Creatuity](https://github.com/creatuity/magento2-interceptors), you need to additionally install this package - [daseraf/magento2-debug-creatuity](https://github.com/Daseraf/magento2-debug-creatuity).

[](#important-if-you-use-the-interceptor-generator-from-creatuity-you-need-to-additionally-install-this-package---daserafmagento2-debug-creatuity)

If you want to see Callmap
--------------------------

[](#if-you-want-to-see-callmap)

For this functionality you will need to install the xhprof extension for your PHP interpreter. I recommend using PECL for these purposes.

Enable Callmap collector
------------------------

[](#enable-callmap-collector)

> pecl install xhprof

### Xhprof extension configuration

[](#xhprof-extension-configuration)

Just enable extension:

> extension=xhprof.so

Xhprof flags are set from the Magento admin panel

> Advanced -&gt; Debug -&gt; Data collectors -&gt; Xhprof Flags

If you want to monitor queries to the database, run this command
----------------------------------------------------------------

[](#if-you-want-to-monitor-queries-to-the-database-run-this-command)

> php bin/magento debug:db-profiler:enable

This will add a profiler flag to the database section of the env.php file

To disable use the following command:
-------------------------------------

[](#to-disable-use-the-following-command)

> php bin/magento debug:db-profiler:disable

Compatibility
-------------

[](#compatibility)

- Magento 2.2 - 2.4
- PHP 7.0 - 8.1

Profiler collectors
-------------------

[](#profiler-collectors)

- Ajax - Please note that you can profile any requests coming into the platform, such as adding to cart [![ajax](./view/base/web/images/readme/ajax.png)](./view/base/web/images/readme/ajax.png)
- Call map - Shows the time spent performing each function. [XHprof extension required](https://www.php.net/manual/en/book.xhprof.php)[![callmap-main](./view/base/web/images/readme/callmap-main.png)](./view/base/web/images/readme/callmap-main.png)[![callmap-popup](./view/base/web/images/readme/callmap-popup.png)](./view/base/web/images/readme/callmap-popup.png)
- Database - Database queries and variable values [![database](./view/base/web/images/readme/database.png)](./view/base/web/images/readme/database.png)
- Events - Displays all sent events as well as the observers tracking them [![events](./view/base/web/images/readme/events.png)](./view/base/web/images/readme/events.png)
- Layout - Displays a list of blocks and the time spent on rendering them [![layout-render](./view/base/web/images/readme/layout-render.png)](./view/base/web/images/readme/layout-render.png)
- Layout Rendering analysis (Layout tab) - Detailed information on each block and caching status for them. [![layout-block-cache.png](./view/base/web/images/readme/layout-block-cache.png)](./view/base/web/images/readme/layout-block-cache.png)

#### Attention - if you see that blocks are not cached, this is not a debugger error! Please make sure your block has cache\_lifetime.

[](#attention---if-you-see-that-blocks-are-not-cached-this-is-not-a-debugger-error-please-make-sure-your-block-has-cache_lifetime)

- Models - Displays loaded entity modules and the number of reloads without accessing the cache [![models](./view/base/web/images/readme/models.png)](./view/base/web/images/readme/models.png)
- Plugins - Shows the plugins that were called during the process, as well as the time spent on their work. Attention - the execution time of around plugins includes the execution time of all functions that will be called in the body of the plugin. Is not an error [![plugins](./view/base/web/images/readme/plugins.png)](./view/base/web/images/readme/plugins.png)
- Translations - here you can see all messages for which translation is missing [![translation](./view/base/web/images/readme/translation.png)](./view/base/web/images/readme/translation.png)
- Cache (Status and Calls) - This tab displays all successful cache calls (cacheKey is displayed in the table) [![cache](./view/base/web/images/readme/cache.png)](./view/base/web/images/readme/cache.png)
- Performance - here you can find a graph that is based on the output of the standard profiler from magento [![performance](./view/base/web/images/readme/performance.png)](./view/base/web/images/readme/performance.png)
- Request/Response [![request](./view/base/web/images/readme/request.png)](./view/base/web/images/readme/request.png)
- Config [![config](./view/base/web/images/readme/config.png)](./view/base/web/images/readme/config.png)
- Memory [![memory](./view/base/web/images/readme/memory.png)](./view/base/web/images/readme/memory.png)

Additional features
-------------------

[](#additional-features)

- [Whoops error handler](http://filp.github.io/whoops/)

Credits
-------

[](#credits)

- [Magento 2.x Web Profiler](https://github.com/clawrock/magento2-debug)
- [Magento 1.x Web Profiler](https://github.com/ecoco/magento_profiler)
- [Symfony WebProfilerBundle](https://github.com/symfony/web-profiler-bundle)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance78

Regular maintenance activity

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~158 days

Recently: every ~195 days

Total

19

Last Release

122d ago

Major Versions

1.0.0 → 2.0.12019-01-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/9902505e9dd87a9277baf5ba10660b0cef9af02eb8f1003a7263a7b5317ad266?d=identicon)[Daseraf](/maintainers/Daseraf)

---

Top Contributors

[![Daseraf](https://avatars.githubusercontent.com/u/11287957?v=4)](https://github.com/Daseraf "Daseraf (38 commits)")[![makao](https://avatars.githubusercontent.com/u/690371?v=4)](https://github.com/makao "makao (38 commits)")[![friendscottn](https://avatars.githubusercontent.com/u/2660768?v=4)](https://github.com/friendscottn "friendscottn (2 commits)")[![chrom](https://avatars.githubusercontent.com/u/944310?v=4)](https://github.com/chrom "chrom (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/daseraf-magento2-debug/health.svg)

```
[![Health](https://phpackages.com/badges/daseraf-magento2-debug/health.svg)](https://phpackages.com/packages/daseraf-magento2-debug)
```

###  Alternatives

[symfony/debug-bundle

Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework

2.4k115.8M824](/packages/symfony-debug-bundle)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

566146.7M471](/packages/spatie-laravel-ignition)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[spatie/ray

Debug with Ray to fix problems faster

62242.5M758](/packages/spatie-ray)[spatie/laravel-ray

Easily debug Laravel apps

31538.4M2.8k](/packages/spatie-laravel-ray)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
