Home  >  Article  >  Backend Development  >  ubuntu上PHP5.3安装xdebug后var_dump输出没有格式化的有关问题

ubuntu上PHP5.3安装xdebug后var_dump输出没有格式化的有关问题

WBOY
WBOYOriginal
2016-06-13 13:02:07831browse

ubuntu下PHP5.3安装xdebug后var_dump输出没有格式化的问题

?

ubuntu下PHP5.3安装xdebug后var_dump输出没有格式化的问题

?

在ubuntu10.04下面配置Apache2.2 + PHP5.3的开发环境,顺便装了一个xdebug扩展方便调试代码。

但是环境配置好了之后却发现xdebug加载成功了但是var_dump输出的内容却没有使用html格式化

xdebug正常的var_dump输出应该是下面的样子

点击查看原图

但是我当前的情况却是没有格式化的代码

点击查看原图

这时想到估计是php.ini里面的某个输出的配置有问题,打印phpinfo()逐个查看配置,最后发现php配置项目

html_errors 为 Off

点击查看原图

将html_errors的值修改为On后,重启Apache,问题解决

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn