I have managed to initiate php-cli script debug session from the IDE itself, but I need to start the debugging session from the shell / command line. These are rather complex ma
Add xdebug.remote_autostart=On to your php.ini file or add -dxdebug.remote_autostart=On as parameter to the PHP binary call (php -d... script.php).
xdebug.remote_autostart=On
-dxdebug.remote_autostart=On
php -d... script.php
See http://xdebug.org/docs/remote