This is my first post here, I post because after reading through X articles googling can't get PhpStorm, Xdebug work with CLI scripts.
Already tried to follow advices from:
- PHPStorm + XDebug Setup Walkthrough
- https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm
- PHPStorm + XDebug + Vagrant
- and few blogs that I've found online, but still nothing...
I had it working, but after destroy vagrant recently and now can't fully restore this feature.
SETUP:
- I'm running Symfony project on Vagrant.
- Debugging of "webpages" on my server works just perfectly.
When I try debug CLI Command I prequisite it with:
export XDEBUG_CONFIG="XDEBUG_SESSION=1" export PHP_IDE_CONFIG="serverName=vagrant"
XDEBUG.INI (on Vagrant):
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=192.168.0.133 (ip I get from ifconfig -a on Vagrant)
xdebug.remote_port=9000
xdebug.max_nesting_level=2500
xdebug.remote_handler=dbgp
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
xdebug.idekey="PHPSTORM"
Any help much appreciated. Digged through X articles on web but in my eyes all configurations look ok, no idea what to do...
xdebug.remote_connect_back=1
-- set it to be0
(disable this functionality) 2)xdebug.remote_host=192.168.0.133 (ip I get from ifconfig -a on Vagrant)
-- this should be an IP of your computer where PhpStorm is running as seen from vagrant machine 3) It's possible that your Linux of Vagrant VM uses 2 different php.ini files: one for Apache and one for CLI scripts -- so you need to ensure that you are editing the right ini file for CLI environment 4) Share yourphp -i
output 5) If still nothing -- enable xdebug log and see what it has to say – LazyOne