amnah/yii2-debug

捕获ajax调用的Yii 2 Debug扩展

安装次数: 430

依赖者: 0

建议者: 0

安全性: 0

星标: 1

关注者: 3

分支: 0

开放问题: 0

类型:yii2-extension

dev-master 2019-04-14 17:25 UTC

This package is not auto-updated.

Last update: 2024-09-19 15:24:56 UTC


README

这是官方yii2-debug模块的改进版本。

这个版本的主要优点是它能够捕获ajax调用并相应地更新debugbar。此外,主要面板更加紧凑。

注意:官方yii2-debug已经增加了自己的ajax实现。他们的版本是一个悬停div,而不是下拉菜单。下面图片可以看到差异。

演示图片

demo

官方Yii2 Debug图片(仅供参考)

official

安装

使用composer安装包 "amnah/yii2-debug": "dev-master"

使用方法

if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'amnah\yii2\debug\Module',
        // uncomment and adjust the following to add your IP if you are not connecting from localhost.
        //'allowedIPs' => ['127.0.0.1', '::1'],
    ];
}