如何启用格式化的 Xdebug 错误和跟踪 [英] How to enable formatted Xdebug errors and traces
问题描述
我不确定我何时或更改了什么,但突然 xdebug 不再呈现其格式化的堆栈跟踪.相反,它在没有任何 HTML 的情况下呈现 stacktrtace;这里有一个例子;而我希望像 here
I am not sure when or what I have changed, but suddenly xdebug no longer renders its formatted stacktraces. Instead, it renders the stacktrtace without any HTML; here is an example; Whereas I would expect the orange tables like here
我已经搜索了文档,但找不到任何可以(取消)设置它的设置或配置的参考.我做错了什么?
I have searched the documentation, but cannot find any reference to a setting or config that would (un)set this. What did I do wrong?
我的 xdebug.ini(Ubuntu,所以/etc/php5/conf.d/xdebug.ini)很小:
My xdebug.ini (Ubuntu, so /etc/php5/conf.d/xdebug.ini) is small:
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.default_enable = 1
xdebug.auto_trace = 1
xdebug.remote_enable = 1
xdebug.remote_port = 9010
xdebug.remote_host = audrey
; xdebug.profiler_enable = 1
; Markup of var_dump
xdebug.overload_var_dump = 1
推荐答案
Xdebug 尊重 PHP 关于错误报告和格式的正常设置.在这种情况下,您很可能在 php.ini 中将html_errors"设置为 Off.将其重新打开,Xdebug 应该再次显示漂亮的橙色表格.
Xdebug respects PHP's normal settings regarding error reporting and formatting. In this case, you have most likely "html_errors" set to Off in php.ini. Turn it back to On, and Xdebug should show nice orange tables again.
干杯,德里克
这篇关于如何启用格式化的 Xdebug 错误和跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!