Xdebug 不创建日志文件

Xdebug not creating log files

寻求一些建议。更改了服务器并且我已经设置了 Xdebug。 PhpStorm 检测到它已启用,PHP 也是如此,尽管我无法让它工作。

(防火墙端口已打开,我的防火墙已禁用,设置已全部配置,但我什么也没得到)

为了确定问题,我需要能够看到 Xdebug 的日志,但我无法让它输出任何内容。我在没有日志文件的情况下尝试过,然后我也创建了一个日志文件并授予 Apache 访问它的权限,但仍然没有。

我是运行CentOS 8 Apache - Log_Debug 启用 运行 在 php7.3

PHP - track_erorr 启用。

/opt/plesk/php/7.3/etc/php.d/50-xdebug.ini

; Enable xdebug extension module
zend_extension=xdebug.so
xdebug.default_enable = 1
xdebug.idekey = "PHPStorm"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_port = 9000
xdebug.remote_handler=dbgp
xdebug.remote_log="/tmp/xdebug.log"
xdebug.remote_host=123.123.123.123

(IP 已更改,原因很明显)

谁能告诉我为什么我不能让 Xdebug 写出任何错误或连接尝试到:/tmp/xdebug.log

这是我的 phpinfo() 调试信息:

感谢评论,我没注意到 Xdebug 更新了它自己。 删除所有以前的参考后,我重新设置 debug.ini (我没有在 php.ini 中存储自定义 ini 设置,我正确地引用了它们)

这是我更新的 xdebug.ini 这通过使用浏览器插件启用调试器模式来工作

zend_extension=xdebug.so
xdebug.client_host = 123.123.123.132
xdebug.client_port = 9000
xdebug.connect_timeout_ms = 200
xdebug.force_display_errors = 1
xdebug.force_error_reporting = 1
xdebug.idekey = PHPStorm
xdebug.log = /tmp/xdebug.log 
xdebug.log_level = 7
xdebug.mode = debug
xdebug.output_dir = /tmp

所有默认设置都可以在这里找到:https://github.com/xdebug/xdebug/blob/master/xdebug.ini