在PhpStorm中设置Xdebug时,CLI解释器在/etc/php/7.2/cli/php.ini
处显示命令行PHP内容的php.ini文件。
问题:我是否还需要向此CLI版本添加xdebug配置?
如果是这样,为什么?可能用于单元测试等吗?
我之所以问,是因为我知道位于/etc/php/7.2/apache2/php.ini
的php.ini文件- 确实 具有Xdebug设置(请参见下文)-是处理我所有网站内容的php.ini。请告知。
谢谢
[xDebug]
; Debug Settings
zend_extension=/usr/lib/php/20170718/xdebug.so
xdebug.remote_enable = On
xdebug.remote_autostart = Off
;xdebug.remote_host = "localhost"
xdebug.remote_connect_back = On
xdebug.remote_port = 9000
xdebug.idekey = "PHPSTORM"