慕标琳琳
你要在配置文件中要找到的调试条的配置$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';比如我本地main-local.phpif (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = 'yii\gii\Module';
}return $config;