Xdebug document (1) basic features and xdebug document features. Xdebug document (1) basic features, basic properties (parameters) xdebug document features. default_enable type: boolean, default value: 1 This is the basic setting of xdebug. by default, the basic features of Xdebug document are tracked in debugging.
Basic attributes (parameters)
Xdebug. default_enable
Type: boolean; default value: 1
This is the basic setting of xdebug. the error message is displayed by default during debugging tracking. You can use the xdebug_disable () function to disable debugging display for your code.
Xdebug. force_display_errors
Type: int. default value: 0. it starts with Xdebug 2.3.
When this setting is set to 1, the error message is forcibly displayed regardless of the value of display_errors in PHP.
Xdebug. force_error_reporting
Type: int. default value: 0. it starts with Xdebug 2.3.
This is a mask value similar to error_reporting. it uses logical or relational organization mask values to determine which errors should not be displayed. This setting can only be configured in php. ini and cannot use the ini_set () function.
Xdebug. halt_level
Type: int. default value: 0. it starts with Xdebug 2.3.
This setting value determines which type of error to convert to a mask value. Supports four levels of settings:
xdebug.halt_level=E_WARNING|E_NOTICE|E_USER_WARNING|E_USER_NOTICE
Xdebug. max_nesting_levelType: integer. default value: 256 (the default value for versions earlier than 2.3 is 100). This setting allows the maximum level of nested functions to run before the script stops.
Xdebug. screamType: boolean. default value: 0. it starts with Xdebug version> = 2.1. if this value is set to 1, xdebug displays the notifications, warnings, and errors of the statements marked with the @ symbol, it is not hidden. Related functions:
String xdebug_call_file ()Returns the name of the file where the function is currently executed.
String xdebug_call_function ()Returns the name of the function source when the current function is called and executed.
Int xdebug_call_line ()Returns the row number of the current execution. Example:
Example:
// Called @ /home/httpd/html/test/xdebug_caller.php:12 from {main}
String xdebug_call_class ()Returns the name of the called class.
Void xdebug_disable ()Error tracking information is not displayed.
Void xdebug_enable ()Displays error tracking information.
String xdebug_get_collected_errors ([int clean])Started with version 2.1. This function returns all error information collected in tabular format. The start point for collecting error information, which is determined by the xdebug_start_error_collection () function. By default, this function does not clear the error information collection cache. you can set the parameter to true to clear the cache.
Array xdebug_get_headers ()Returns all header information in an array. all header information set by the header () function is returned.
/**Returns:array(2) { [0]=> string(6) "X-Test" [1]=> string(33) "Set-Cookie: TestCookie=test-value"}*/Bool xdebug_is_enabled ()Check whether the debugging trace is valid.
Int xdebug_memory_usage ()Returns the memory usage of the script. The -- enable-memory-limit parameter must be included in the version compiled before PHP5.2.1, which is always valid in later versions.
Int xdebug_peak_memory_usage ()Returns the maximum memory usage value. The -- enable-memory-limit parameter must be included in the version compiled before PHP5.2.1, which is always valid in later versions.
Void xdebug_start_error_collection ()Started with version 2.1. when this function is executed, PHP will no longer display any notification warning or error information. This information will be stored in a cache and will be stopped unless it is executed to xdebug_stop_error_collection. The error information in the cache can be obtained through the xdebug_get_collected_errors () function.
Void xdebug_stop_error_collection ()It starts with version 2.1 and is opposite to xdebug_start_error_collection () and stops collecting all notifications, warnings, and error messages. Note that it does not clear the cache for collection errors.
Float xdebug_time_index ()Returns the current time index, that is, the number of seconds after the script starts running, expressed as a floating point.
/**Returns:0.000380039215087890.76580691337585*/
Compile (1) basic features, basic properties (parameters) of xdebug document features xdebug. default_enable type: boolean, default value: 1 This is the basic settings of xdebug, default in debugging tracking...