我使用以下方法下载了 DebugKit
插件:
php composer.phar require --dev cakephp/debug_kit "~3.0"
但它仍然在 error.log
中显示警告,并且 DebugKit
不起作用:
Warning: DebugKit not enabled. You need to either install pdo_sqlite, or define the "debug_kit" connection name
那么如何在app.php
中定义debug_kit
连接名称以及如何启用debugkit?
最佳答案
Installing and enabling
pdo_sqlite
fromTerminal
对于PHP5.6
sudo apt-get install php5.6-sqlite3
对于PHP7
sudo apt-get install php7*-sqlite3
安装完成后,重新启动Apache服务器
sudo service apache2 restart
注意: php5.6-sqlite3
= {YourPhpVersion}-{SqliteVersion}
关于debugging - CakePHP 3 : DebugKit is not enabled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33126292/