I'm trying to get debugging using Xdebug and PhpStorm to work. I've set it up several times in the past, without much issues. This time things are not going as smoothly though.
My current configuration in php.ini is as follows:
zend_extension = "c:\xampp2\php\ext\php_xdebug.dll" xdebug.remote_enable=1 xdebug.remote_port=9000 xdebug.remote_host=127.0.0.1 xdebug.remote_cookie_expire_time=3600 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.idekey=PHPSTORM xdebug.remote_log="c:\xampp2\tmp\xdebug.txt" xdebug.remote_autostart=1 Adding xdebug.remote_autostart made sure that connections were being set up whenever a script is being run from the CLI. It still does not work when invoking a script through Apache though.
I have checked the Xdebug log, and I'm not seeing anything unusual there: https://pastebin.com/4rK8pJqt
The most obvious cause would be having separate php.ini files for CLI and Apache, but that is not the case. I only have a single php.ini file, and I have verified that Xdebug settings show up just fine in phpinfo in a browser. Please see below for screenshots.
Are there any specific settings that could cause Xdebug not to be able to connect to PHPStorm? Or is anyone aware of any bugs in either Xdebug or PhpStorm that could cause this?


