【问题标题】:Xdebug from Docker suddenly stopped working in PhpStorm来自 Docker 的 Xdebug 突然停止在 PhpStorm 中工作
【发布时间】:2021-03-27 02:03:01
【问题描述】:

我已经用了很长时间了,没有任何问题,昨天它还在工作。我不知道发生了什么,可能是 PhpStorm 的静默更新或其他什么 - 但它停止了工作。

我检查了本地脚本,Xdebug 仍然激活。我还使用了 PhpStorm 验证 - 没问题:

现在,当我加载项目页面时,激活小书签后,它不会触发任何内容。另外,我以前可以通过这种方式从 docker 内的命令行启动脚本:

export PHP_IDE_CONFIG="serverName=localhost"
php -dxdebug.remote_enable=On -dxdebug.remote_autostart=On -dxdebug.remote_connect_back=On -dxdebug.idekey=PHPSTORM -dxdebug.remote_port=9000 -dxdebremote_host=localhost myscript.php

我尝试检查配置中的所有调试相关内容:

什么都没有。我被困在这里了。提前感谢您的帮助。

PhpStorm 版本 - 2020.3

【问题讨论】:

  • 你的 PhpStorm 版本是多少?
  • PhpStorm 2020.3

标签: phpstorm xdebug


【解决方案1】:

Xdebug 2.2.5
PhpStorm 2020.3

这是 PhpStorm 2020.3 中的一个问题。对于下一个次要 2020.3.1 版本,它已经修复 (WI-57282)。

据我了解,您正在使用一些旧的 PHP 版本(5.6 或类似版本)并且无法升级它以使用更新的 PHP/最新的 Xdebug。

目前,您要么必须回滚到 2020.2.4,要么等待 2020.3.1 版本(2020.3.1 Preview build 已经可用;最终版本应在本月晚些时候发布)。

【讨论】:

  • 谢谢!看起来像。
猜你喜欢
  • 1970-01-01
  • 2022-01-18
  • 2017-08-22
  • 2021-02-01
  • 2016-12-29
  • 2018-05-09
  • 2015-12-07
  • 2015-08-23
相关资源
最近更新 更多