malyshev / yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.
http://www.yiiframework.com/extension/yii-debug-toolbar/
282 stars 92 forks source link

I've installed the extension, but does not display panel #134

Open Mrzhang147 opened 8 years ago

Mrzhang147 commented 8 years ago
'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                    array(
                            'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                            // Access is restricted by default to the localhost
                            //'ipFilters'=>array('*'),
                    ),
            ),
    ),

'db'=>array( 'class' =>'CDbConnection', 'connectionString' => 'mysql:host=_;dbname=_', 'emulatePrepare' => true, 'username' => '****', 'password' => '***', 'charset' => 'utf8', 'enableProfiling'=>true, 'enableParamLogging'=>true, ), This configuration of, in addition to the two still need what configuration? In firefox, Google, all don't, according to 1.1.7 YII version

pvolyntsev commented 8 years ago

Try to uncomment 'ipFilters' => array('*')

'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                    array(
                            'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                            // **Access is restricted by default to the localhost**
                            'ipFilters'=>array('*'), // uncomment this
                    ),
            ),
    ),
Mrzhang147 commented 8 years ago

@pvolyntsev Have tried, no, don't know in addition to these also need to configure

fmarkwong commented 8 years ago

@Mrzhang147 I had the same problem as you with the toolbar not appearing.

In my case, the code for the debug panel was being injected in my views successfully but the problem was my view code was conflicting with it and causing it to not appear.

I didn't want to spend the time to try to resolve it so I searched and came across this toolbar, https://github.com/zhuravljov/yii2-debug, which works for me. It seems to isolate the debug bar from the rest of the view better.

This debug toolbar also has an ipfilter setting which I had to set to array('*') for it to work. Fyi, I'm running Yii 1.1.14