Xdebug document (i) basic features, Xdebug document properties
Basic properties (Parameters)
xdebug.default_enable
Type: boolean, default value: 1
This is the basic setting for Xdebug, which displays an error message by default when debugging traces. You can use the xdebug_disable () function to make your code show no debug display.
xdebug.force_display_errors
Type: int, default: 0, starting with Xdebug version 2.3
This setting is set to 1 o'clock, regardless of the PHP settings display_errors setting value, the error message will be mandatory always displayed.
xdebug.force_error_reporting
< Span class= "Apple-converted-space" > < Span class= "type" > < Span class= "Apple-converted-space" > int, default value: 0, starting with < Span class= "type" >xdebug version 2.3
This is a error_reporting-like mask value that 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 be used with the Ini_set () function.
Xdebug.halt_level
< Span class= "Apple-converted-space" > < Span class= "type" > < Span class= "Apple-converted-space" > int, default value: 0, starting with < Span class= "type" >xdebug version 2.3
This setting values a masked value to determine which type of error to convert to. Supports four levels of settings:
Xdebug.halt_level=e_warning| e_notice| E_user_warning| E_user_notice
Xdebug.max_nesting_levelType:
Integer, default: 256 (the default value for the previous version is 2.3) The setting value allows the maximum level of nesting functions to run before the script is stopped. Xdebug.screamType:
Boolean, default value: 0, starting with Xdebug version >= 2.1 If this value is set to 1, Xdebug displays notifications, warnings, and errors for statements that identify the @ symbol and is no longer hidden. Related functions:
string xdebug_call_file () Returns the name of the file where this function is currently executing.
string xdebug_call_function () returns the name of the function source that the current function was called to execute. int xdebug_call_line () Returns the line number that is currently executing. Example:
Example:
php function fix_string ($a) { echo "called @". xdebug_call_file (). ":". Xdebug_call_line (). " From ". xdebug_call_function (); } $ret = fix_string (array(' Derick '));? >// called @/home/httpd/html/test/xdebug_caller.php:12 from {main}
string xdebug_call_class () Returns the class name of the call.
void xdebug_disable () Error tracking information is not displayed.
void xdebug_enable () Displays error trace information.
string xdebug_get_collected_errors ( [int clean] ) Starts with version 2.1 The function returns all the collected error information, which is formatted in tabular form. The starting point for the collection of error messages, using the function xdebug_start_error_collection () decision. By default, the function does not empty the error message collection cache, and you can set the parameter to True if the cache is emptied.
array xdebug_get_headers () Returns all header information as an array, and the header information that is set by the header () function is returned.
PHPHeader("X-test", "testing" ); Setcookie ("TestCookie", "Test-value" ); Var_dump (Xdebug_get_headers ());? >/**returns:array (2) { [0]=> string (6) "X-test" [1]=> string (33) " Set-cookie:testcookie=test-value "}* /
bool xdebug_is_enabled () Detects if the debug trace is valid.
int xdebug_memory_usage () Returns the amount of memory used by the script. The version that was compiled before PHP5.2.1 must be shipped with the--enable-memory-limit parameter only, and after that the version is valid.
int xdebug_peak_memory_usage () Returns the highest value used for memory. The version that was compiled before PHP5.2.1 must be shipped with the--enable-memory-limit parameter only, and after that the version is valid.
void xdebug_start_error_collection () Starts at version 2.1 when the function is executed, PHP will no longer display any notification warnings and error messages, which will be stored in a cache unless executed to xdebug_stop_error_collection () will stop. The contents of the error message in the cache can be obtained through the xdebug_get_collected_errors () function.
void xdebug_stop_error_collection () Starting with version 2.1 and Xdebug_start_error_collection (), it stops collecting all notifications, warnings, and error messages. Note that it does not clear the cache that collects the errors.
float xdebug_time_index () Returns the current time index, which is the number of seconds since the script started running, expressed in floating-point numbers.
PHPEcho xdebug_time_index (), "\ n"; for ($i$i$i+ +) {// do nothing} echo Xdebug_time_index (), "\ n";? >/**returns:0.000380039215087890.76580691337585* /
http://www.bkjia.com/PHPjc/1133536.html www.bkjia.com true http://www.bkjia.com/PHPjc/1133536.html techarticle Xdebug Document (i) basic features, Xdebug document properties Basic Properties (Parameters) Xdebug.default_enable type: boolean, default: 1 This is the basic setting for Xdebug, the default in debug tracking ...