After installing xdebug in php, var_dump () cannot input variable content. 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 only need simple configuration. someone asks why var_dump () cannot input the variable content after php installs xdebug. all 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. we need to modify the configuration file and set it.
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 integer. the default value is 128.
Displays the maximum number of object attributes. More than not displayed
Xdebug. var_display_max_data = 512
The parameter type integer. the default value is 512.
Maximum data length displayed
Xdebug. var_display_max_depth = 3
The parameter type integer. the default value is 3.
Display maximum nested series
Variable () cannot be used to input variable content. the variables in it are directly output rather than output the content in the variable. below we just need to configure a simple one...