smile / module-debug-toolbar
smile/module-debug-toolbar
Smile Debug Toolbar
Smile Debug Toolbar for Magento 2
Description
This module adds a Debug Toolbar in Magento 2.
The toolbar displays useful information about the last executions (including ajax requests, rest API and graphql):
- HTTP Request/response
- SQL queries (with the PHP trace for each query)
- Profiler information (with timers)
- Layout information
- Cached items
- Plugins/observers that were triggered
[image: image]
Installation
To install the module:
- Execute the following command at the root of the Magento installation:
composer require --dev smile/module-debug-toolbar - Enable the module:
bin/magento module:enable Smile_DebugToolbar bin/magento setup:upgrade - Enable the toolbar:
bin/magento config:set smile_debugtoolbar/configuration/enabled 1
Configuration
The configuration of the module is available in the section Smile > Smile DebugToolbar of the admin area:
You can:
- Enable / disable the debug toolbar (default: disabled)
- Show / hide the debug toolbar in the admin area (default: hidden)
- Choose the number of last executions to save and display in the toolbar (default: 5)
Uninstallation
Unfortunately, the module cannot be automatically uninstalled, because Magento doesn't support uninstallation of dev packages out of the box.
To uninstall the module, follow these steps:
- In app/etc/env.php, remove the key
db.connection.default.profilerfrom the array if it is defined. - Run the following commands:
bin/magento module:disable Smile_DebugToolbar composer remove --dev smile/module-debug-toolbar bin/magento setup:upgrade - [Optional] Remove the directory "var/smile_toolbar".
Customizing the Toolbar
It is possible to add new zones to the toolbar (e.g. to display project-specific data).
This is documented here.
Contributing
You can contribute to this module by submitting issues or pull requests.
For more details, please take a look at the contribution guidelines.
License
This module is licensed under the Eclipse Public License - v 2.0.
Changelog
All notable changes are recorded in this changelog.
Contact
Smile Technical Office [email protected]
Changelog
All notable changes to this project will be documented in this file.
7.0.3 - 2026-03-23
- Fixed deprecation notice when using php 8.5
7.0.2 - 2024-12-02
- Added a notification message in admin area when Magento runs in production mode
7.0.1 - 2023-11-08
- Renamed the "Generic" zone to "Server"
- Renamed the "Mysql" zone to "Database"
- Fixed typos
- Fine-tuned warning threshold for various statistics
- Moved block factories initialization to di.xml file
7.0.0 - 2023-09-05
- Set minimum PHP version to 8.1.
This module now uses some features that require PHP >= 8.1 (e.g. promoted constructors).
6.1.3 - 2023-09-04
- Better third party theme support (#27)
6.1.2 - 2023-05-04
- Fix width of the mysql query list
6.1.1 - 2023-02-06
- Disable the output of the toolbar ajax query when the toolbar is disabled
- Remove use of AbstractAction class (deprecated)
6.1.0 - 2023-02-02
- Use an ajax query to load the toolbar
- Reduce memory consumption
6.0.0 - 2022-10-13
- Set minimum PHP version to 7.4
- Add new code quality standard (SmileLab)
5.2.4 - 2022-10-11
- Cast response content to string
5.2.3 - 2022-08-08
- Fix fatal error due to invalid type in layout helper
5.2.2 - 2022-07-26
- Update php constraint in composer.json
5.2.1 - 2022-07-06
- Fix env.php sync issue when enabling/disabling the profiler
5.2.0 - 2022-04-15
- Compatibility with Magento 2.4.4
5.1.2 - 2021-10-12
- Enabling/disabling the module will now properly update the profiler config in app/etc/env.php
- Fix fatal error on URL path page_cache/block/render
5.1.1 - 2021-08-05
- Add Magento module dependencies in composer.json
- Code cleanup (CI pipelines integration)
5.1.0 - 2021-08-02
- Add setting to toggle toolbar on admin area
- Add uninstallation procedure in the documentation
5.0.2 - 2021-01-04
- Set minimum PHP version to 7.3
- Remove copyright/licence annotations from DocBlocks
5.0.1 - 2020-08-18
- Fix event list not displayed in toolbar
- Remove type hinting from core methods and plugins
5.0.0 - 2020-08-17
WARNING: Compatibility break with Magento 2.3
- Add type hinting and strict types
- Add escaping in templates
- Set minimum requirements to Magento 2.4
4.0.3 - 2019-11-26
- Fix PHP notice triggered when an observer is disabled
4.0.2 - 2019-02-06
- Fix composer dependencies
4.0.1 - 2019-01-16
- Use Magento coding standard ruleset
- Update copyright
4.0.0 - 2018-11-28
WARNING: Compatibility break with Magento 2.2
- The module is now compatible with Magento 2.3
3.2.0 - 2018-11-27
- Code refactoring
3.1.1 - 2018-08-01
- Fix issue #1 - remove highlighjs lib (for mysql queries) because of a requireJs incompatibility
3.1.0 - 2017-12-29
- Implement new design
- Lots of minor fixes
- Better PHPDoc
- Update the copyright date
- Add doc
3.0.1 - 2017-12-12
- Fix minor issue on preference table
3.0.0 - 2017-11-13
WARNING: Compatibility break with Magento 2.1
- The module is now compatible with Magento 2.2
- Fix issue on message display conflict with the layout debug zone
1.2.2 - 2017-10-10
- Fix issue on event name - must be in lower case
1.2.1 - 2017-10-09
- Fix issue on layout zone - crash on the top menu
1.2.0 - 2017-09-29
- Add the "observer" zone
- Add the "plugin" zone
- Add the "preference" zone
- Add the "layout" zone
1.1.1 - 2017-09-20
- Fix bug on profiler class detection
- Fix bug on old toolbar cleaning
1.1.0 - 2017-09-20
- Add the "profiler" zone
- Refactoring the templates
1.0.0 - 2017-08-23
- First version of the module
- Add the "Generic" zone
- Add the "Request" zone
- Add the "Response" zone
- Add the "Mysql" zone
- Add the "Cache" zone
- Add the "Summary" zone
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 7.0.3 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2026-03-23 15:26:38 |
| 7.0.2 | stable | Not tested | Not yet tested Details | 2024-12-02 10:42:25 |
| 7.0.1 | stable | Not tested | Not yet tested Details | 2023-11-08 16:15:00 |
| 7.0.0 | stable | Not tested | Not yet tested Details | 2023-09-05 08:59:20 |
| 6.1.3 | stable | Not tested | Not yet tested Details | 2023-09-04 09:41:49 |
| 6.1.2 | stable | Not tested | Not yet tested Details | 2023-05-04 09:56:42 |
| 6.1.1 | stable | Not tested | Not yet tested Details | 2023-02-06 16:26:03 |
| 6.1.0 | stable | Not tested | Not yet tested Details | 2023-02-02 17:03:35 |
| 6.0.0 | stable | Not tested | Not yet tested Details | 2022-10-13 11:10:44 |
| 5.2.4 | stable | Not tested | Not yet tested Details | 2022-10-11 11:21:14 |
| 5.2.3 | stable | Not tested | Not yet tested Details | 2022-08-08 12:26:15 |
| 5.2.2 | stable | Not tested | Not yet tested Details | 2022-07-26 09:43:47 |
| 5.2.1 | stable | Not tested | Not yet tested Details | 2022-07-06 15:42:52 |
| 5.2.0 | stable | Not tested | Not yet tested Details | 2022-04-15 19:13:25 |
| 5.1.2 | stable | Not tested | Not yet tested Details | 2021-10-12 09:05:39 |
| 5.1.1 | stable | Not tested | Not yet tested Details | 2021-08-05 08:54:42 |
| 5.1.0 | stable | Not tested | Not yet tested Details | 2021-08-02 14:29:30 |
| 5.0.2 | stable | Not tested | Not yet tested Details | 2021-01-22 16:31:35 |
| 5.0.1 | stable | Not tested | Not yet tested Details | 2021-01-22 16:31:08 |
| 5.0.0 | stable | Not tested | Not yet tested Details | 2020-08-17 14:47:52 |
| 4.0.3 | stable | Not tested | Not yet tested Details | 2020-03-30 14:56:05 |
| 4.0.2 | stable | Not tested | Not yet tested Details | 2019-02-25 10:17:31 |
| 3.2.0 | stable | Not tested | Not yet tested Details | 2019-02-25 10:17:11 |
| 3.1.1 | stable | Not tested | Not yet tested Details | 2018-08-01 15:12:37 |
| 3.1.0 | stable | Not tested | Not yet tested Details | 2017-12-29 14:47:51 |
| 3.0.1 | stable | Not tested | Not yet tested Details | 2017-12-12 15:51:36 |
| 3.0.0 | stable | Not tested | Not yet tested Details | 2017-11-13 10:32:31 |
| 1.2.2 | stable | Not tested | Not yet tested Details | 2017-10-11 07:39:09 |
| 1.2.1 | stable | Not tested | Not yet tested Details | 2017-10-09 08:35:05 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2017-09-29 07:40:43 |
| 1.1.1 | stable | Not tested | Not yet tested Details | 2017-09-21 10:27:59 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2017-09-20 13:46:25 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2017-08-23 11:46:30 |
Requires 3
| Package | Constraint |
|---|---|
| php | ^8.1 |
| magento/framework | >=103.0.4 |
| magento/module-config | >=101.2.4 |
Requires-dev 1
| Package | Constraint |
|---|---|
| smile/magento2-smilelab-quality-suite | ^3.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.
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.
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
| 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
| 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.
More from smile
View vendorMagento 2 merchandising and search engine built on ElasticSearch
Smile - Custom Entity Akeneo Module
Extension of Magento2 Sales Rule to provide gifted (free) products with magento/module-sales-rule-staging.
Smile Retailer Offer Inventory
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.