gpt4 book ai didi

php - Xdebug 不创建日志文件

转载 作者:行者123 更新时间:2023-12-04 17:22:51 25 4
gpt4 key购买 nike

寻求一些建议。更改了服务器,我已经设置了 Xdebug。 PhpStorm 检测到它已启用,PHP 也是如此,尽管我无法让它工作。
(防火墙端口已打开,我的防火墙已禁用,所有设置都已配置,但我什么也没得到)
为了确定问题,我需要能够看到 Xdebug 的日志,但我无法让它输出任何内容。我在没有日志文件的情况下尝试了它,然后我还创建了一个日志文件并授予 Apache 访问它的权限,但仍然没有。
我在运行 CentOS 8
Apache - 启用日志调试
运行于 php7.3
PHP - track_errorr 已启用。
/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() 调试信息:
enter image description here

最佳答案

感谢您的评论,我没有注意到 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

关于php - Xdebug 不创建日志文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65147589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com