【问题标题】:I can't configure lando with xdebug我无法使用 xdebug 配置lando
【发布时间】:2019-11-27 22:27:17
【问题描述】:

我正在尝试使用 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

【问题讨论】:

    标签: xdebug lando


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-15
      • 2012-03-31
      • 2012-07-02
      • 2020-11-06
      • 1970-01-01
      • 2022-11-11
      • 2021-04-03
      • 1970-01-01
      相关资源
      最近更新 更多