Php 什么会导致xdebug';要忽略的远程主机设置
我的Php 什么会导致xdebug';要忽略的远程主机设置,php,xdebug,Php,Xdebug,我的xdebug.remote_host设置被完全忽略,而使用另一台主机 在我的/etc/php/7.1/cli/php.ini中: [xdebug] zend_extension=/usr/lib/php/20170718/xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_host=10.0.4.89 xdebug.remote_port=8020 xdebug.idekey=albumview--
xdebug.remote_host
设置被完全忽略,而使用另一台主机
在我的/etc/php/7.1/cli/php.ini
中:
[xdebug]
zend_extension=/usr/lib/php/20170718/xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=10.0.4.89
xdebug.remote_port=8020
xdebug.idekey=albumview--php-fpm
xdebug.remote_log=/var/www/albumviewer-api/output/xdebug.log
然而,当我运行cli脚本时,我在日志中看到:
Log opened at 2019-02-15 10:19:27
I: Connecting to configured address/port: 192.168.2.54:8020.
E: Time-out connecting to client (Waited: 200 ms). :-(
Log closed at 2019-02-15 10:19:27
重新启动docker容器无效。我错过了什么?为什么它试图连接到192.163.2.54而不是我指定的ip地址?您能从
phpinfo()
获取xdebug部分吗
我猜还有另一个文件(很可能是/etc/php/7.1/conf.d/xdebug.ini
)覆盖了php.ini的设置
这里是相关的解释你能从phpinfo()
获取xdebug部分吗
我猜还有另一个文件(很可能是/etc/php/7.1/conf.d/xdebug.ini
)覆盖了php.ini的设置
下面是相关的解释你能从phpinfo()中得到xdebug部分吗?我猜还有另一个文件(很可能是/etc/php/7.1/conf.d/xdebug.ini
)覆盖了php.iniThank you@Andrew的设置。我从没想过要检查phpinfo()
。确实有另一个文件覆盖了该设置。如果你把这个评论作为答案,我会给你分数:-)完成了。谢谢:)您能从phpinfo()获取xdebug部分吗?我猜还有另一个文件(很可能是/etc/php/7.1/conf.d/xdebug.ini
)覆盖了php.iniThank you@Andrew的设置。我从没想过要检查phpinfo()
。确实有另一个文件覆盖了该设置。如果你把这个评论作为答案,我会给你分数:-)完成了。谢谢:)