Can't get zero configuration debugging to work
So, I upgraded my PhpStorm to 2019.1, and upgraded my PHP from 7.1 to 7.3, and added the following to the cli's php.ini:
[xdebug]
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
xdebug.remote_cookie_expire_time=3600
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM
Unfortunately, I can't validate the debugger. Even though $ php --version confirms I'm running 2.7.0, when I try to validate, I get the following:
It's a Symfony project, which is why I'm pointing it to the /path/to/project/web directory. And I can verify that everything is accessible at that URL since I can view my work in progress through the browser.
I'm not sure what else to do. It doesn't seem like PhpStorm is even aware that my browser is trying to engage remote debugging, and there's a complete lack of notification (beyond being unable to validate Xdebug) why. I've restarted my server, verified that my Xdebug php.ini values are in the phpinfo() output, etc. I'm stuck.
Please sign in to leave a comment.
Just got the following popup error:
Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
Validation doesn't work because the script PhpStorm creates in
/home/kevin/www/diva/web/scriptname.php
can't be accessed byhttp://diva.com:80/scriptname.php
. Isweb
the web root of this server?Also, do I get right that this server is local?
And how exactly are you trying to invoke the debug session, are you using a browser extension or bookmarklets?