PhpStorm:是否应该将Xdebug设置都添加到我的php.ini文件中?

时间:2019-03-19 19:46:56

标签: php phpstorm xdebug

在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设置

[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"

0 个答案:

没有答案