Debugging Symfony2 Console Commands with XDebug and PHPStorm
I'm suggesting to try following BASH helper command:https://github.com/torinaki/phpdebug-cli
phpdebug
mostly autodetects all required configurations and you will not require to provide environment variables.
Just run:
phpdebug app/console bundle:console_command