]> granicus.if.org Git - php/commitdiff
correction to headers
authorkrakjoe <joe.watkins@live.co.uk>
Sun, 10 Nov 2013 15:54:19 +0000 (15:54 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Sun, 10 Nov 2013 15:54:19 +0000 (15:54 +0000)
backtrace help

phpdbg.h
phpdbg_help.c
phpdbg_help.h

index 26fb118f4a4733ea0207f18571f4e0b48216a9d4..f34fa4c84e008ca2ae53e58a9d73d53b1db2000f 100644 (file)
--- a/phpdbg.h
+++ b/phpdbg.h
@@ -22,6 +22,7 @@
 #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"
index 4edc20bb55da29b770d942f61a4d042591ee5dda..b3467a4eaae0daca61b79d8557f10163e2e3a73b 100644 (file)
@@ -96,3 +96,11 @@ PHPDBG_HELP(cont) /* {{{ */
     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;
+} /* }}} */
index ca510b942a5d79140b33ea2b892926f25d91859b..597dfdca8661c72702a016531f74bb93da0e956d 100644 (file)
@@ -40,6 +40,7 @@ PHPDBG_HELP(eval);
 PHPDBG_HELP(print);
 PHPDBG_HELP(break);
 PHPDBG_HELP(cont);
+PHPDBG_HELP(back);
 
 /**
  * Commands
@@ -54,6 +55,7 @@ static const phpdbg_command_t phpdbg_help_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}
 };