How can I connect Xdebug 3 to PhpStorm on Windows 10?

Viewed 1267

I'm trying to connect PhpStorm and debug PHP scripts/webpages with Xdebug, something I've done several times.

This is my php.ini file (the interesting bit):

[xdebug]
zend_extension=C:\xampp\php\ext\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_port=10000
xdebug.remote_mode=req

I set multiple breakpoints and called xdebug_break() on my index but code execution is not stopping at them.

This is the PhpStorm validation script output for Xdebug:
This is the PhpStorm validation script output for Xdebug

The output of netstat which shows that PhpStorm is listening on port 10000:
The output of netstat which shows that PhpStorm is listening on port 10000

2 Answers

Change

from

xdebug.remote_enable=1
xdebug.remote_port=10000
xdebug.remote_mode=req

into

xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=10000
Related