added xdebug_is_debugger_active() (#855)

This commit is contained in:
Markus Staab 2020-06-29 20:51:29 +02:00 committed by GitHub
parent e0723c43a4
commit 300365d4b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -5241,6 +5241,7 @@ const FUNCTIONS = array (
'xdebug_get_profiler_filename' => 'xdebug/xdebug.php',
'xdebug_get_stack_depth' => 'xdebug/xdebug.php',
'xdebug_get_tracefile_name' => 'xdebug/xdebug.php',
'xdebug_is_debugger_active' => 'xdebug/xdebug.php',
'xdebug_is_enabled' => 'xdebug/xdebug.php',
'xdebug_memory_usage' => 'xdebug/xdebug.php',
'xdebug_peak_memory_usage' => 'xdebug/xdebug.php',

View File

@ -289,6 +289,15 @@ function xdebug_get_headers () {}
function xdebug_get_formatted_function_stack() {}
/**
* Returns whether a debugging session is active.
*
* Returns true if a debugging session through DBGp is currently active with a client attached; false, if not.
*
* @return bool
*/
function xdebug_is_debugger_active() {}
define ('XDEBUG_STACK_NO_DESC', 1);
define ('XDEBUG_TRACE_APPEND', 1);
define ('XDEBUG_TRACE_COMPUTERIZED', 2);