obe
obe

Reputation: 7788

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

I have a clean installation of Ubuntu 19.10 running in Virtualbox on Windows 7.

I have the latest PhpStorm: 2019.3 (running on Windows).

I have PHP 7.3.11, with opcode disabled, running with nginx.

I have xdebug 2.7.2.

I've done the configurations like in another machine with older versions of PhpStorm, PHP, and xdebug, which worked.

When I try to debug - PhpStorm doesn't stop on breakpoints. I've enabled PhpStorm's debug log. I saw messages about the connection succeeding, and then:

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

I enabled xdebug logging, and saw some success messages, and then this:

<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>

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

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

Upvotes: 1

Views: 552

Answers (1)

LazyOne
LazyOne

Reputation: 165088

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

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

AFAIK that command is sent since PhpStorm 2019.3 (2019.2.x and older do not try to use it).

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

It does not affect your debug session in that Xdebug 2.7.x and older versions, at all. There is simply no need for any workarounds here.

Upvotes: 2

Related Questions