malyshev / yii-debug-toolbar
此包已弃用,不再维护。未建议替代包。
一组可配置的面板,显示当前请求/响应的各种调试信息。
dev-master
2014-07-05 12:25 UTC
This package is not auto-updated.
Last update: 2021-09-13 12:50:45 UTC
README
Yii Debug Toolbar 是一组可配置的面板,显示当前请求/响应的各种调试信息,点击后可显示面板内容的更多详情。
它是将 PHP 中的著名 Django Debug Toolbar 移植过来的。
目前,以下面板已被编写并正常运行
- 服务器信息
- 请求计时器
- 超级全局变量列表
- 应用设置
- SQL 查询,包括执行时间和参数绑定
- 通过 Yii 内置的日志记录输出
安装
从“protected/extensions”下的存档中提取 yii-debug-toolbar
使用和配置
要使用 yii-debug-toolbar,需要在 log
组件中指定新的 route
<?php //... 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute', // Access is restricted by default to the localhost //'ipFilters'=>array('127.0.0.1','192.168.1.*', 88.23.23.0/24), ), ), ),
<?php //... 'db'=>array( 'connectionString' => 'mysql:host=localhost;dbname=test', //... 'enableProfiling'=>true, 'enableParamLogging'=>true, ),
待办事项和错误
参见: 问题