yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

  • 所有者: malyshev/yii-debug-toolbar
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Yii Debug Toolbar

The Yii Debug Toolbar is a configurable set of panels that display various
debug information about the current request/response and when clicked, display
more details about the panel's content.

It is a ported to PHP famous Django Debug Toolbar.

Currently, the following panels have been written and are working:

  • Server info
  • Request timer
  • A list of superglobals
  • Application settings
  • SQL queries including time to execute and param bindings
  • Logging output via Yii built-in logging

Installation

Extract the yii-debug-toolbar from archive under protected/extensions

Usage and Configuration

For use yii-debug-toolbar need to specify new route in log component:

<?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),
            ),
        ),
    ),
  • Make sure your IP is listed in the ipFilters setting. If you are working locally this option not required.
  • Enable Profiling and ParamLogging for all used DB connections.
<?php
//...
	'db'=>array(
	    'connectionString' => 'mysql:host=localhost;dbname=test',
	    //...
	    'enableProfiling'=>true,
	    'enableParamLogging'=>true,
	),

TODOs and BUGS

See: issues

Working preview

主要指标

概览
名称与所有者malyshev/yii-debug-toolbar
主编程语言PHP
编程语言PHP (语言数: 3)
平台
许可证
所有者活动
创建于2011-06-20 18:09:27
推送于2020-05-13 08:30:00
最后一次提交2014-07-05 15:25:16
发布数0
用户参与
星数282
关注者数34
派生数90
提交数181
已启用问题?
问题数84
打开的问题数41
拉请求数31
打开的拉请求数10
关闭的拉请求数11
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?