Skip to content

Commit ba107f7

Browse files
authored
Add debugger to console (#277)
1 parent da817e6 commit ba107f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config/console.php

+8
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
$config['modules']['gii'] = [
4444
'class' => 'yii\gii\Module',
4545
];
46+
// configuration adjustments for 'dev' environment
47+
// requires version `2.1.21` of yii2-debug module
48+
$config['bootstrap'][] = 'debug';
49+
$config['modules']['debug'] = [
50+
'class' => 'yii\debug\Module',
51+
// uncomment the following to add your IP if you are not connecting from localhost.
52+
//'allowedIPs' => ['127.0.0.1', '::1'],
53+
];
4654
}
4755

4856
return $config;

0 commit comments

Comments
 (0)