Installation:
Pre-compiling module
It is easy to install a precompiled module. Just put them in a directory and add the following to PHP.ini: (Don't forget to change the path and file name to your own value and make sure you're using the full path)
Zend_extension_ts = "C:/php/modules/php_xdebug.dll"
Basic Features:
Related parameter settings
Xdebug.default_enable
Type: Boolean default value: On
If this is set to ON, the stack trace will be displayed by default in the Error event. You can prevent the display of stacked traces by using xdebug_disable () in your code. Because this is one of the basic functions of the xdebug, it is advisable to set this parameter to ON.
Xdebug.max_nesting_level
Type: Integer default value: 100
The value of this setting was the maximum level of nested functions that are allowed before the script'll be aborted.
Limits the access depth of infinite recursion. The value set for this parameter is the maximum access depth of the nested program allowed before the script fails.
Stack trace:
Related parameter settings
Xdebug.dump_globals
Type: Boolean default value: 1
Limit whether to display the value of a xdebug.dump.* variable defined by the set
For example, Xdebug.dump.SERVER = Request_method,request_uri,http_user_agent will print the PHP Super global variable $_server[' Request_method ', $_server [' Request_uri '] and $_server[' http_user_agent '].
Xdebug.dump_once
Type: Boolean default value: 1
Limit whether the value of a super global variable should be dumped in all error environments (when set to off) or only at the beginning (when set to ON)
xdebug.dump_undefined
Type: Boolean default value: 0
If you want to dump an undefined value from a super global variable, you should set this parameter to ON, otherwise it will be set to off
Xdebug.show_exception_trace
Type: integer default value: 0
When this parameter is set to 1 o'clock, even if an exception is caught, Xdebug will still force exception tracking when an exception occurs.
Xdebug.show_local_vars
Type: integer default value: 0
When this parameter is set to not equal to 0 o'clock, the stack dump generated by xdebug in the wrong environment also displays all local variables, including variables that have not been initialized at the top. Note that this produces a lot of information and is therefore closed by default.