Xdebug隐藏转储信息? [英] Xdebug hiding dump information?

查看:107
本文介绍了Xdebug隐藏转储信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用xdebug与我的php方法,如var_dump()是美丽的,但不显示完整的信息,而不是转储结束与三个点 ... 这可能是继续的迹象后面跟着

I am using xdebug with my php methods such as var_dump() are beautiful but not showing full information instead the dump ends with three dots ... which might be the sign of continuation followed by

(length=87749)

我该如何告诉xdebug显示完整的转储?
谢谢

How should I tell xdebug to show full dump ?? Thanks

推荐答案

Xdebug截断(至少)字符串和数组的输出,以避免它变大。

Xdebug truncates the output of (at least) strings and arrays, to avoid it getting to big.

可以使用以下指令配置打印的数据:

The amout of data that's printed can be configured using these directives :

  • xdebug.var_display_max_children
  • xdebug.var_display_max_data
  • and xdebug.var_display_max_depth

有关更多信息和示例,请参阅 可变显示功能

For more informations and example, see Variable Display Features



您必须编辑您的 php.ini 文件(或 xdebug.ini 文件,具体取决于您的设置),以便根据需要定义这些指令。


You'll have to edit your php.ini file (or xdebug.ini file, depending on your setup), to define those directives, with values that suit your needs.

例如,在Ubuntu上,在我的 /etc/php5/conf.d/xdebug.ini 文件中,我有以下几行:

For example, on Ubuntu, in my /etc/php5/conf.d/xdebug.ini file, I have the following lines :

xdebug.var_display_max_children = 256
xdebug.var_display_max_data = 2048
xdebug.var_display_max_depth = 8

这篇关于Xdebug隐藏转储信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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