According to the tutorial on the network, the configuration is as follows: However, the xdebug module installed in phpinfo is never displayed.
According to the tutorial on the network, the configuration is as follows:
However, the xdebug module installed in phpinfo is never displayed.
Reply content:
According to the tutorial on the network, the configuration is as follows:
However, the xdebug module installed in phpinfo is never displayed.
There may be multiple configuration files. we recommend you find them on the phpinfo page.Loaded Configuration FileAndAdditional .ini files parsedFind the correspondingphp.iniFile configurationxdebug. Runphp --iniThe configuration files loaded under cli may be different.
Your xdebug version is not correct.
1 xdebug is often used to print and format var_dump.
2. use wincachegrind to analyze and optimize the code
If you just want to format and print the array, give you a method
/**
Php output debugging
@ Param unknown $ vars
@ Param string $ label
@ Param string $ return
@ Return string | NULL
*/
Static function dump ($ vars, $ label = '', $ return = false ){
if (ini_get('html_errors')) { $content = "\n"; if ($label != '') { $content .= "{$label} :\n"; } $content .= htmlspecialchars(print_r($vars, true)); $content .= "\n\n"; } else { $content = $label . " :\n" . print_r($vars, true); } if ($return) { return $content; } echo $content; return null;
}
You can define it as global.