Xdebug 不适用于 var_dump() [英] Xdebug does not work with var_dump()
问题描述
我不知道为什么,但是 xdebug 没有突出显示 var_dump().但配置似乎没问题.不知道为什么...有什么建议吗?
I'm not sure why, but xdebug does not highlight var_dump(). But config seems to be fine. Have no idea why... Any suggestions?
这是我的 phpinfo();http://pastebin.com/A45dqnWN
This is my phpinfo(); http://pastebin.com/A45dqnWN
甚至 xdebug_var_dump() 也没有突出任何内容.它有效,但看起来像正常的 var_dump().
plus even xdebug_var_dump() doesn't highlight anything. It works, but look like normal var_dump().
推荐答案
我在你的 php_info() 中发现了xdebug.default_enable Off Off"选项.我还注意到,在 EasyPHP 的最新版本中,此选项已关闭.所以通过在 php.ini 中设置这一行来打开它:
I found that option "xdebug.default_enable Off Off" in you php_info(). I also have noticed that in last versions of EasyPHP this option is turned off. So turn it on by setting this line in php.ini:
xdebug.default_enable=1
接下来是完全禁用 HTML 输出中的 var_dump 和其他错误的常见操作(不是您的情况,但可能对其他人有帮助):
Next is just common operation which disables var_dump and other errors in HTML output completely (not your case, but maybe helpful for others):
html_errors = On
这篇关于Xdebug 不适用于 var_dump()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!