PhpStorm Xdebug 已连接但未停止

PhpStorm Xdebug connected but not stopped

你好,昨天我在 PhpStorm 中遇到了 xdebug 的奇怪问题。 如您所见,我通过了 PhpStorm 验证:

但是当我启用侦听器并启动调试会话时,它只是挂起。

还在 xdebug 日志中我可以看到正确的文件名和它必须停止的行。但是 PhpStorm 并没有向我展示那个中断。

如果没有断点网站加载正确。如果我启用 PhpStorm 的选项 "Break at first line in PHP scripts",它会在 index.php 正确停止,但我无法进入 over/in。 (只是挂起)

如果有人能帮助我就太好了。

P.S。我的 Xdebug 工作了很多年,昨天我重新安装 Apache 并且发生了这个问题,已经尝试完全重新安装 PHP 和 Apache,问题仍然存在。

经过更多研究,我发现了这个 topic。 我检查了我的 phpstorm 日志,发现了完全相同的错误:

错误 - plication.impl.ApplicationImpl - com/jetbrains/php/debug/xdebug/debugger/XdebugDriver.onBreak 的 @NotNull 参数 'remoteFileUrl' 的参数不能为 null ...

解决方案是安装旧版本的 xdebug。我刚刚安装了 2.6.1(安装了 2.7.0),现在一切正常。