I'm running Xdebug 2.9 on my Mac and I'm able to debug a PHP script inside PhpStorm 2020.1, but I can't get the IDE to react to Chrome Xdebug extension when I set a breakpoint in a simple script that I run on the browser.
I activated the extension (it's green) and I've set PHPSTORM
as the IDE key in the extension options, and I'm listening for PHP debug connections but still PhpStorm does not react to it.
I have set the following in my php.ini file also :
debug.remote_enable = 1
I don't know what to configure more than that.
EDIT : I use MAMP for PHP on the web. The solution was to uncomment the "zend_extension" key in the php.ini of my MAMP php version instead of pointing to my own xdebug extension.
I use the following ini config:
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey = PHPSTORM
xdebug.remote_autostart = off
xdebug.remote_port = 9000
And here is my PHPSTORM config:
P.S.: but it does not work for cli request. To enable debug for cli request you should set:
xdebug.remote_autostart = on