常用配置
xdebug.var_display_max_children
整数类型,默认值128。用于控制通过xdebug_var_dump(),var_dump()方法时显示数组中子数组的个数或对象中属性的个数,设定为-1关闭该限制。
xdebug.var_display_max_data
整数类型,默认值521。用于控制xdebug_var_dump(),var_dump()方法时显示输出的字符串的长度,设定为-1关闭该限制。
xdebug.var_display_max_depth
整数类型,默认值3。用于控制通过xdebug_var_dump(),var_dump()方法时打印数组或对象时显示的层数,即深度。可设定的最大值为1023,也可以将其设定为-1以达到设定最大值的效果。
xdebug.collect_params
整数类型,默认值0。如果一个方法的访问记录被跟踪时,打开该选项,会同时记录传递给该方法的所有参数信息。可设定一下值:
0 关闭
1 记录参数的类型和长度,如string(6), array(8)
2 Type and number of elements, with a tool tip for the full information
3 Full variable contents (with the limits respected as set byxdebug.var_display_max_children,xdebug.var_display_max_dataandxdebug.var_display_max_depth.
4 Full variable contents and variable name.
xdebug.collect_var