debugging - CakePHP 3 : DebugKit is not enabled

标签 debugging cakephp-3.0

我使用以下方法下载了 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 from Terminal

对于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/

相关文章:

cakephp - patchEntity 似乎删除了外键

cakephp-3.0 - cakephp 3.x 级联删除不工作

cakephp - 如何在 CakePHP 查询中创建 `IN` 子句?

c++ - 我们如何调试在 C++ 应用程序中使用的 matlab 制作的 DLL?

java - IntelliJ IDEA 中的 Gradle Java 调试项目

visual-studio - 以编程方式更改 Visual Studio 选项

authentication - CakePHP 3 : Accessing current user in model

Android Studio 在调试时卡住并显示消息 "SIGNAL = SIGABRT (signal SIGABRT)"

调试 gdb tui 定义新布局

mysql - 插入字段时它不会自动生成 ID cakephp3