php - XDebug 不是格式化错误

标签 php macos xampp xdebug

我已经在 Mac OSX/XAMPP 上安装了 XDebug,并且在 phpinfo() 中正确显示。但错误的格式与 xdebug 过去的方式不同(这些橙色框看起来非常清晰)。

某些值已正确设置(出现在 phpinfo() 中):

  • 显示错误:开启
  • html_errors:开启
  • xdebug.auto_trace:开启

如果我将 xdebug.show_exception_trace 切换为 On,我会看到 XDebug 添加的新信息格式正确...这只是基本错误显示,其外观没有改变。然后我假设 XDebug 已正确启动并运行。

编辑 1:这是我的 phpinfo 的 XDebug 部分 enter image description here

编辑 2:我有一个全新的干净安装,不再出现此问题。

最佳答案

这对我有用:How to enable formatted Xdebug errors and traces

基本上,只需在 php.ini 中设置 html_errors = On

关于php - XDebug 不是格式化错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7780687/

相关文章:

php - bind_param() 仅对用户输入的值或全部是必要的?

php - 在 Centos 6 上安装 php-gd 时依赖失败

java - SWING 应用程序中抛出 _​​_NSAutoreleaseNoPool

php - TwitterAPIExchange PHP Xampp SSL 认证问题

PHP.exe (CLI) 无法连接到 MySQL,而 Firefox 可以!

php - .htaccess 文件在 LAMP 中不起作用

php - 在 javascript 中使用 php 函数

php - XAMPP 未启动 : SSH Not Accesible

swift - 列出所有可用的音频设备

MacOS 上的 SwiftUI。 - 打开一个新窗口