来自 Docker 的 Xdebug 在 PhpStorm 中突然停止工作 [英] Xdebug from Docker suddenly stopped working in PhpStorm
问题描述
我已经使用了很长时间没有任何问题,它昨天还在工作.我不知道发生了什么,也许是 PhpStorm 的无声更新或其他什么 - 但它停止工作了.
I have used this for a long time without any issue, it was still working yesterday. I don't know what happened, maybe a silent update of PhpStorm or whatever - but it stopped working.
我用本地脚本检查过,Xdebug 仍然激活.我还使用了 PhpStorm 验证 - 没问题:
I checked with a local script, Xdebug still activates. I also used PhpStorm validation - no problem :
现在,当我加载项目页面时,在激活书签后,它不会触发任何内容.此外,我曾经能够通过这种方式从 docker 内的命令行启动脚本:
Now, when I load a page of the project, after activating the bookmarklet, it doesn't trigger anything. Also, I used to be able to launch scripts from the command line inside docker this way :
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
我尝试检查配置中的所有调试相关内容:
I tried checking all debug relevant stuff in config :
什么都没发生.我被困在这里了.在此先感谢您的帮助.
Nothing goes. I'm pretty stuck here. Thanks ahead for any help.
PhpStorm 版本 - 2020.3
PhpStorm Version - 2020.3
推荐答案
Xdebug 2.2.5
PhpStorm 2020.3
Xdebug 2.2.5
PhpStorm 2020.3
这是 PhpStorm 2020.3 中的一个问题.它已针对下一个 2020.3.1 次要版本修复 (WI-57282).
That's an issue in PhpStorm 2020.3. It is already fixed (WI-57282) for next minor 2020.3.1 version.
据我所知,您使用的是旧的 PHP 版本(5.6 或类似版本)并且无法升级它以使用较新的 PHP/最新的 Xdebug.
As I understand you are using some old PHP version (5.6 or alike) and cannot upgrade it to use newer PHP/latest Xdebug.
目前你要么回滚到 2020.2.4,要么等待 2020.3.1 发布(2020.3.1 预览版 已经可用;最终版本应该在本月晚些时候发布).
For the moment you either have to rollback to 2020.2.4 or wait for 2020.3.1 release (2020.3.1 Preview build is already available; final version should be released at some point later this month).
这篇关于来自 Docker 的 Xdebug 在 PhpStorm 中突然停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!