我已经阅读了这个文档:http://xdebug.org/docs/remote
我可以对我的 Web 应用程序进行调试。
但是调试器在控制台命令中不会启动。
我的 XDebug 的 .ini 文件(它有效):
$ 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
cli
的 .ini 文件是相同的。
我也尝试在调试之前添加了 export XDEBUG_CONFIG="idekey=PHPSTORM remote_enable=1 remote_connect_back=1"
,但没有帮助。
我该如何启用它?