Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug hiding dump information?

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)

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

like image 937
Mr Coder Avatar asked Feb 26 '11 15:02

Mr Coder


2 Answers

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


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.

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
like image 158
Pascal MARTIN Avatar answered Nov 09 '22 13:11

Pascal MARTIN


Just edit in your php.ini file

xdebug.var_display_max_depth = 10 #example
like image 44
mailo Avatar answered Nov 09 '22 14:11

mailo