XDebug: how to debug remote console application?

后端 未结 2 359
忘了有多久
忘了有多久 2021-01-30 15:15

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

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 15:35

    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"
    

提交回复
热议问题