Skip to content
Advertisement

Cannot examine breakpoints in PhpStorm with Xdebug

I have a simple Apache + PHP 7.1 web server running locally.

I’ve got Xdebug helper installed in Chrome, and I click “Debug” in that.

I’ve got Xdebug 2.9.2 extension running successfully in PHP, with correct output from phpinfo();

When I run “validate” in PhpStorm I get green ticks for all but the last item, “Debug protocol ” is not supported“, which has a yellow triangle.

I set a debug point in my code, and hit the green bug in the toolbar to begin a debugging session, and the only thing that’s output in the Debugger “Variables” pane in PhpStorm is “Waiting for incoming connection with ide key ‘13508’” (this number changes every time).

Within php.ini I have set xdebug.idekey="PHPSTORM", and I’ve mirrored this in my Chrome Xdebug Helper.

I am not running Zend Debug.

I would really like to be able to debug properly. Any help is greatly appreciated.

Advertisement

Answer

Accordingly to your Xdebug log, you already have some service running on TCP 9000 port and that does not seem to be PhpStorm. Most likely it’s php-fpm (it also uses the same port by default).

You can check that with netstat or alike (e.g. sudo lsof -nP -iTCP -sTCP:LISTEN if you are on Mac) — it can show associated process ID (or even process name straight away).

Solution: change Xdebug port in both php.ini and PhpStorm to be some another number — e.g. 9001 or so; restart web server once done.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement