A specialized debug toolbar extension that provides enhanced debugging capabilities for Yii2 applications using the PSR Bridge, offering comprehensive insights into application execution, performance metrics, and component interactions.
✅ Enhanced Debug Toolbar
- Real-time performance monitoring and metrics collection.
Method 1: Using Composer (recommended)
Install the extension.
composer require yii2-extensions/worker-debug:^0.1
Add to your composer.json
.
{
"require": {
"yii2-extensions/worker-debug": "^0.1"
}
}
Then run.
composer update
Add the following code to your configuration file (web.php
).
<?php
declare(strict_types=1);
use yii2\extensions\debug\WorkerDebugModule;
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => WorkerDebugModule::class,
// uncomment the following to add your IP if you are not connecting from localhost.
//'allowedIPs' => ['127.0.0.1', '::1'],
];
}
For testing guidance, see.