1 , 下载地址
https://github.com/malyshev/yii-debug-toolbar.git
2 , yii框架配置

3 , 更改main.php文件
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
),
// uncomment the following to show log messages on web pages
/*
array(
'class'=>'CWebLogRoute',
),
*/
),
),
),
4 , 更改database.php文件
return array(
// 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
// uncomment the following lines to use a MySQL database
'connectionString' => 'mysql:host=localhost;dbname=yiitest',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'hadoop123',
'charset' => 'utf8',
'enableProfiling'=>true,
'enableParamLogging'=>true,
);