#include "zend_ini_scanner.h"
#include "zend_globals.h"
#include "zend_stream.h"
+#include "zend_builtin_functions.h"
#include "SAPI.h"
#include <php_config.h>
#include "php_main.h"
printf("[Warnings about using stepping and break points here]\n");
return SUCCESS;
} /* }}} */
+
+PHPDBG_HELP(back) { /* {{{ */
+ printf("The backtrace is gathered with the default debug_backtrace functionality.\n");
+ printf("You can set the limit on the trace, for example:\n");
+ printf("phpdbg> back 5\n");
+ printf("Will limit the number of frames to 5, the default is no limit\n");
+ return SUCCESS;
+} /* }}} */
PHPDBG_HELP(print);
PHPDBG_HELP(break);
PHPDBG_HELP(cont);
+PHPDBG_HELP(back);
/**
* Commands
PHPDBG_HELP_D(print, "printing allows inspection of the execution environment"),
PHPDBG_HELP_D(break, "breakpoints allow execution interruption"),
PHPDBG_HELP_D(cont, "use continue when a break point is met"),
+ PHPDBG_HELP_D(back, "show debug backtrace information during execution"),
{NULL, 0, 0}
};