Related Settings
Xdebug.default_enable=1
The default is 1, and when an error occurs, the stack trace is activated. You can turn it off by xdebug_disable () in your code.
Xdebug.force_display_errors=0
The default is 0, and if set to 1, the error will always be displayed, regardless of how PHP's display_errors is set.
Xdebug.force_error_reporting=0
The default is 0, just like error_reporting. Allows you to force a specific level of error to be displayed, regardless of how Ini_set () is set in the program. It can only be modified by php.ini.
Xdebug.halt_level=0
xdebug.max_nesting_level=100
Xdebug.scream=0
If set to 1, the @ operator is masked so that notices,warnings and errors are not hidden.
Related functions
String Xdebug_call_class ()
Returns the class of the call
<? PHP function fix_string ($a) { echo "called @". Xdebug_call_file (). ":". Xdebug_call_line (). " From ". xdebug_call_function (); } $ret = fix_string (array(' Derick '));? >
Return:
Called @/home/httpd/html/test/xdebug_caller.php:12 from {main}
String Xdebug_call_file ()
Returns the called file
String Xdebug_call_function ()
Returns the function/method called
int Xdebug_call_line ()
Return line number
void Xdebug_disable ()
Disable stack tracevoid xdebug_enable ()turn on stack tracevoid Xdebug_get_collected_errors ( [int clean])
Returns all the error messages that were collected
Array Xdebug_get_headers ()
Returns the headers of the header () function set for PHP
<? PHP Header ("X-test", "testing" ); Setcookie ("TestCookie", "Test-value" ); Var_dump (Xdebug_get_headers ());? >
Return:
Array (2) { [0]=> string (6) "X-test" [1]=> string ("Set-cookie:testcookie=test-value"}
BOOL Xdebug_is_enabled ()
Returns whether the stack trace is turned on
int Xdebug_memory_usage ()
Returns the currently occupied memory
int Xdebug_peak_memory_usage ()
Returns the peak memory consumption
void Xdebug_start_error_collection ()
Start collecting all notices,warnings and errors and prevent them from being displayed
void Xdebug_stop_error_collection ()
Stop collecting all the notices,warnings and errors.
Float Xdebug_time_index ()
Returns the current time index
<? PHP echo xdebug_time_index (), "\ n"; for ($i$i$i+ +) {// do nothing}Echo Xdebug_time_index (), "\ n";? >
Return
0.000380039215087890.76580691337585
Xdebug Debugging PHP Programs