我无法使用 xdebug 配置兰多

  • 本文关键字:配置 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 输出

基于文档 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

最新更新