Reputation: 646
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:
Ds\Map
object?Upvotes: 0
Views: 610
Reputation: 36784
Xdebug and PhpStorm should both be able to handle both cases. The var_display_max_children
setting is indeed not for step debugging, but the protocol allows for PhpStorm to request for more information.
It's either possible that there is a bug here, or that you have an older version of PhpStorm that has some issues talking to Xdebug about this.
In either case, I recommend that you file a bug report at https://bugs.xdebug.org with a short and self-contained script. Please follow the instructions at https://xdebug.org/reporting-bugs
Upvotes: 3