禁用Xdebug的HTML堆栈跟踪 [英] Disable HTML stack traces by Xdebug

查看:159
本文介绍了禁用Xdebug的HTML堆栈跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

管理员已在共享的PHP 5.3.0服务器中安装了Xdebug 2.1.1,以便使用其调试器.现在,我几乎无法读取未捕获的异常的堆栈痕迹,因为它们是由Xdebug格式化的,具有令人讨厌的颜色,这些颜色与站点的CSS交互不良:

The administrator has installed Xdebug 2.1.1 in our shared PHP 5.3.0 server in order to use its debugger. Now, I can hardly read the stack traces of uncatched exceptions because they are formatted by Xdebug with annoying colours that interact badly with the site's CSS:

由于PHP作为Apache模块运行,因此我尝试在.htaccess文件中禁用此功能,但我无法实现:

Since PHP runs as Apache module, I've tried to disable this feature in an .htaccess file but I can't make it go:

php_flag xdebug.default_enable Off
php_flag xdebug.overload_var_dump Off
php_flag xdebug.show_exception_trace Off
php_value xdebug.trace_format 1

phpinfo() Local Value 列中显示了我的更改,但是我仍然可以看到那些可怕的橙色表.我需要更改的指令是什么?

phpinfo() shows my changes in the Local Value column but I can still see those horrible orange tables. What's the directive I need to change?

推荐答案

检查 xdebug_disable() 文档 :

禁用堆栈跟踪

在错误情况下禁用显示堆栈跟踪.

Disable showing stack traces on error conditions.

另请参见 xdebug.default_enable 文档 .

这篇关于禁用Xdebug的HTML堆栈跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆