command line interface - XDebug: how to debug remote console application? -
i have read docs: http://xdebug.org/docs/remote
i can debug web application.
debugger doesn't launch console command.
my .ini file xdebug (it works):
$ cat /etc/php5/fpm/conf.d/xdebug.ini zend_extension=/usr/lib/php5/20090626/xdebug.so xdebug.idekey="phpstorm" xdebug.remote_connect_back=1 xdebug.remote_enable=1
.ini file cli
same.
also tried add export xdebug_config="idekey=phpstorm remote_enable=1 remote_connect_back=1"
before debugging, didn't help.
how can enable it?
short answer:
we need set 2 environment variables, these two lines:
export php_ide_config="servername={server name in php storm}" export xdebug_config="remote_host=$(echo $ssh_client | awk '{print $1}') idekey=phpstorm"
updated: ide (e.g. phpstorm) you, set php interpreter remote one.
Comments
Post a Comment