I have read this docs: http://xdebug.org/docs/remote
I can debug my web application. But the debugger doesn\'t launch for console command.
My .ini file for X
Thanks to @DmitryR for the answer!
But, to avoid exporting XDEBUG_CONFIG each time I open my console, I've added second line (it was enough for me) to my
~/.bashrc file
export XDEBUG_CONFIG="remote_host=$(echo $SSH_CLIENT | awk '{print $1}') idekey=PHPSTORM"