xdebug - 我无法使用 xdebug 配置lando
问题描述
我正在尝试使用 Lando Drupal 站点设置 Xdebug。我尝试了很多不同的lando 配置,但无论我做什么,我都无法让xdebug 出现在我的phpinfo 中。我目前的配置是:
name: content-engine-1
recipe: pantheon
config:
framework: drupal8
site: content-engine-1
id: bdfe297a-e96b-401d-b932-158854085e0e
xdebug: true
php: .lando.php.ini
services:
appserver:
xdebug: true
overrides:
environment:
PHP_IDE_CONFIG: "serverName=appserver"
这是 .lando.php.ini 文件
xdebug.remote_enable=true
xdebug.remote_host="127.0.0.1"
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_log="/var/tmp/xdebug.log"
xdebug.remote_autostart=true
这是 phpinfo() 的输出: phpinfo output
解决方案
基于文档https://docs.lando.dev/config/php.html#configuration 它应该是
name: content-engine-1
recipe: pantheon
config:
framework: drupal8
site: content-engine-1
id: bdfe297a-e96b-401d-b932-158854085e0e
xdebug: true
config:
php: .lando.php.ini
推荐阅读
- android - 如何使用 Material Design 主题创建圆形按钮、更改其颜色并为其设置动画?
- sqlite - 如何使用 vscode 将 csv 文件导入 sqlite?
- java - 使用 ByteArray 请求 MultiPart/Form-Data
- node.js - Nodejs Mongoose - 检查数组对象值是否存在,如果不存在则将新对象添加到数组中
- android - 如何在android studio中读取输出张量(tflite)
- r - 如何使用 R 中的某些公式将季度数据分解为月度数据?
- python - 根据值对列表进行排序,如果相同的值使用索引对其进行排序
- c++ - volatile 和 mutex 是否确保 C++ 中的内存排序?
- java - “选择新构造函数”查询返回 java.lang.Object 而不是构造函数类的实例
- ruby - 奥丁计划:关于棋盘颜色的问题