xdebug可以美化var_dump吗? [英] Does xdebug beautify var_dump?

查看:92
本文介绍了xdebug可以美化var_dump吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据这篇文章 http://devzone.zend.com/article/2803 ,应该使用var_dump美化输出.

According to this article, http://devzone.zend.com/article/2803, var_dump is supposed to beautify the outputs.

我已经使用PHP版本5.3.3-1ubuntu9.2在本地主机上安装了xdebug. 我的php.ini输出中有这个.

I have installed xdebug on my local host with PHP Version 5.3.3-1ubuntu9.2. I have this in my php.ini outputs.

该程序利用了Zend 脚本语言引擎:Zend引擎 v2.3.0,版权所有(c)1998-2010 Zend 技术领域 与Xdebug v2.1.0,版权(c)2002-2010,作者Derick Rethans

This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

但是,当我使用var_dump()时,什么都没有改变.

However when I use var_dump(), nothing changes.

xdebug真的可以美化var_dump输出吗?

Does xdebug really beautify the var_dump outputs?

如果是,该如何解决?

这是我在php.ini中xdebug的详细信息

This is my details of xdebug in php.ini

xdebug
xdebug support  enabled
Version     2.1.0

Supported protocols Revision
DBGp - Common DeBuGger Protocol     $Revision: 1.145 $

Directive   Local Value Master Value
xdebug.auto_trace   Off Off
xdebug.collect_assignments  Off Off
xdebug.collect_includes On  On
xdebug.collect_params   0   0
xdebug.collect_return   Off Off
xdebug.collect_vars Off Off
xdebug.default_enable   On  On
xdebug.dump.COOKIE  no value    no value
xdebug.dump.ENV no value    no value
xdebug.dump.FILES   no value    no value
xdebug.dump.GET no value    no value
xdebug.dump.POST    no value    no value
xdebug.dump.REQUEST no value    no value
xdebug.dump.SERVER  no value    no value
xdebug.dump.SESSION no value    no value
xdebug.dump_globals On  On
xdebug.dump_once    On  On
xdebug.dump_undefined   Off Off
xdebug.extended_info    On  On
xdebug.file_link_format no value    no value
xdebug.idekey   netbeans-xdebug netbeans-xdebug
xdebug.manual_url   http://www.php.net  http://www.php.net
xdebug.max_nesting_level    100 100
xdebug.overload_var_dump    On  On
xdebug.profiler_aggregate   Off Off
xdebug.profiler_append  Off Off
xdebug.profiler_enable  On  On
xdebug.profiler_enable_trigger  Off Off
xdebug.profiler_output_dir  /tmp    /tmp
xdebug.profiler_output_name cachegrind.out.%p   cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_connect_back  Off Off
xdebug.remote_cookie_expire_time    3600    3600
xdebug.remote_enable    On  On
xdebug.remote_handler   dbgp    dbgp
xdebug.remote_host  localhost   localhost
xdebug.remote_log   no value    no value
xdebug.remote_mode  req req
xdebug.remote_port  9000    9000
xdebug.scream   Off Off
xdebug.show_exception_trace Off Off
xdebug.show_local_vars  Off Off
xdebug.show_mem_delta   Off Off
xdebug.trace_format 0   0
xdebug.trace_options    0   0
xdebug.trace_output_dir /tmp    /tmp
xdebug.trace_output_name    trace.%c    trace.%c
xdebug.var_display_max_children 128 128
xdebug.var_display_max_data 512 512
xdebug.var_display_max_depth    3   3

先谢谢了.

推荐答案

您需要具有 html错误也在您的php配置中打开

You need to have html errors turned on in your php config as well

这篇关于xdebug可以美化var_dump吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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