As per Xdebug Documentation:
integer xdebug.var_display_max_depth = 3 #
Controls how many nested levels of array elements and object properties are when variables are displayed with either xdebug_var_dump(), xdebug.show_local_vars or when making a Function Trace. The maximum value you can select is 1023. You can also use -1 as value to select this maximum number.
This setting does not have any influence on the number of children that is send to the client through the Step Debugging feature.
However, I'm trying to display a nested object in PhpStorm, and I expectedly get this result:
Repro:
$n = new Map();
$n["test"] = new Map();
$n["test"]->put("lorem", new Map());
$n["test"]["lorem"]->put("ipsum", "dolor");
$m = ["m" => ["k" => ["r" => ["h" => ["test_var"]]]]];
So I have two questions:
- Why can Xdebug display the values in the nested array but can't when using other objects?
- How can I "force" Xdebug to drill deeper into the
Ds\Map
object?