带有 xdebug 的 PhpStorm 不会在断点处停止。日志显示 "Xdebug protocol doesn't support command"

PhpStorm with xdebug doesn't stop on breakpoints. Log says "Xdebug protocol doesn't support command"

我在 Windows 7 上的 Virtualbox 中全新安装了 Ubuntu 19.10 运行。

我有最新的 PhpStorm:2019.3(运行 在 Windows 上)。

我有 PHP 7.3.11,禁用了操作码,运行 nginx。

我有 xdebug 2.7.2.

我已经像在另一台机器上那样用旧版本的 PhpStorm、PHP 和 xdebug 完成了配置,这很有效。

当我尝试调试时 - PhpStorm 不会在断点处停止。 我启用了 PhpStorm 的调试日志。我看到有关连接成功的消息,然后:

INFO - n.XdebugConnectionConfigurator - Xdebug protocol doesn't support command: 'feature_set -i 5 -n resolved_breakpoints -v 1' 

我启用了 xdebug 日志记录,看到了一些成功消息,然后是:

<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" status="starting" reason="ok"><error code="3"><message><![CDATA[invalid or missing options]]></message></error></response>

所以在我看来,PhpStorm 实际上正在尝试发送不受支持的命令。

有没有人以前遇到过这个问题并且可以分享解决方法?

So it seems to me like PhpStorm is actually trying to send an unsupported command.

Yes and No at the time: resolved_breakpoints feature (command) is supported since Xdebug 2.8

据我所知,该命令自 PhpStorm 2019.3(2019.2.x 及更早版本请勿尝试使用它)后发送。

Has anyone encountered this issue before and can share a workaround?

它不会影响您在 Xdebug 2.7.x 和旧版本中的调试会话。这里根本不需要任何解决方法。