Appearance
How to get xdebug var_dump to show full object/array
To get xdebug to show the full contents of an object or array when using the var_dump function, you can use the xdebug.var_display_max_depth setting in your php.ini file.
Here is an example of how you can set this setting:
How to get xdebug var_dump to show full object/array in PHP?
ini
xdebug.var_display_max_depth = 10This will make xdebug display up to 10 levels deep for arrays and objects. You can adjust the value to your liking.
After updating php.ini, restart your web server or PHP-FPM and verify the configuration via phpinfo(). This INI directive applies to both Xdebug 2 and Xdebug 3. (Note: The xdebug_var_dump() function was removed in Xdebug 3 and is obsolete for modern PHP environments.)