PHP: Disable var_dump() from truncating data

Dear fellow PHP coders, does that look familiar?

   array(3) {
      'something' =>
      string(6) "blabla"
      'something else' =>
      string(8) "more bla"
      'something threlse' =>
      array(2) {
        'test1' => ...
        'test2' => ...
      }
    }

Exactly…var_dump() truncating data…

Naveen S Nayak to the rescue!!!

Add this to your php.ini:

xdebug.var_display_max_data = -1
xdebug.var_display_max_children = -1
xdebug.var_display_max_depth = -1

 

Leave a Reply