Someone asked why var_dump () cannot input the variable content after php installs xdebug. the variables in it are directly output rather than output the content in the variable, next we just need to configure xdebug to solve the problem.
Someone asked why var_dump () cannot input the variable content after php installs xdebug. the variables in it are directly output rather than output the content in the variable, next we just need to configure xdebug to solve the problem.
In the php development environment, after the xdebug module is installed, the output results of var_dump () will be easier to view, but by default, the output results of var_dump () will change: too many array elements are not displayed. string variables only display the first N characters, and deeper array elements are also displayed as ellipsis. This may cause some inconvenience. modify the configuration file and set these parameters. add the following to the xdebug node in php. ini:
- Xdebug. var_display_max_children = 128
- Xdebug. var_display_max_data = 512
- Xdebug. var_display_max_depth = 5
The details are as follows: xdebug. var_display_max_children = 128. the parameter type is integer. the default value is 128. The maximum number of object attributes is displayed.
Xdebug. var_display_max_data = 512, parameter type integer, default value: 512, display maximum data length
Xdebug. var_display_max_depth = 3, parameter type integer, default value: 3, display maximum nested level