Follow the tutorials on the web to configure such as:
However, the installed Xdebug module is not always visible in the Phpinfo
Reply content:
Follow the tutorials on the web to configure such as:
However, the installed Xdebug module is not always visible in the Phpinfo
There may be more than one configuration file, it is recommended that you find the Phpinfo page Loaded Configuration File
and Additional .ini files parsed
find the corresponding php.ini
file to configure xdebug
. Execution at the command line php --ini
can see the configuration files loaded under the CLI, which are likely to be different and not configured incorrectly.
The version of your xdebug is wrong.
1 xdebug commonly used in Var_dump printing format looks convenient
2 optimized code with WINCACHEGRIND analysis
If you're just trying to format a print array, here's your way.
/**
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 a global.