Preventing xdebug truncating its var_dump results

When inspecting a deeply nested data structure using var_dump; xdebug does nice code formatting and syntax highlighting making it distinctly more pleasant to read. But it “helpfully” truncates the information beyond a certain depth, which really sucks when you need to check the details deep in the data structure.

Luckily all you need to do is add these lines to php.ini to make it output the whole thing:

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

Advertisements