简体   繁体   English

Xdebug 3: 无法获取 HTML 格式错误以启用

[英]Xdebug 3 : can't get HTML formatted errors to enable

I'm running php8.2-fpm with nginx. phpinfo() confirms that Xdebug is loading into PHP properly.我正在使用 nginx 运行 php8.2-fpm。phpinfo phpinfo()确认 Xdebug 正在正确加载到 PHP。 Errors are shown but without formatting.显示错误但没有格式化。 Example image attached.附上示例图片。

Edits to php.ini show I can modify/have enabled html_errors properly.对 php.ini 的编辑显示我可以正确修改/启用 html_errors。 I have enabled xdebug.mode = develop (and I also tried debug) and it shows in phpinfo() as well (image at bottom attached).我启用xdebug.mode = develop (我也尝试过调试)并且它也显示在phpinfo()中(附在底部的图像)。

However my errors remain unformatted.但是我的错误仍然没有格式化。 I would appreciate any help as the prior submitted questions offer no guidance after these steps are completed.我将不胜感激任何帮助,因为在完成这些步骤后,先前提交的问题不会提供任何指导。

显示的示例错误

phpinfo Xdebug显示

Make sure your php.ini file has html_errors enabled确保您的php.ini文件启用了html_errors

html_errors = true

To do it with php, use:要使用 php 执行此操作,请使用:

ini_set('html_errors', true);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM