xdebug var_dump显示层级设置

These are configurable variables in php.ini:
; with sane limits
xdebug.var_display_max_depth =
5xdebug.var_display_max_children = 256xdebug.var_display_max_data = 1024 ; with no limits

; (maximum nesting is 1023)

最大显示深度

xdebug.var_display_max_depth = –1

最大子节点

xdebug.var_display_max_children = –1

最大数据量

xdebug.var_display_max_data = –1

Of course, these may also be set at runtime via ini_set(), useful if you don't want to modify php.ini and restart your web server but need to quickly inspect something more deeply.
ini_set('xdebug.var_display_max_depth', 5);
ini_set(
'xdebug.var_display_max_children', 256);
ini_set(
'xdebug.var_display_max_data', 1024);

发表回复

您的电子邮箱地址不会被公开。