]> granicus.if.org Git - php/commitdiff
cont
authorkrakjoe <joe.watkins@live.co.uk>
Sun, 10 Nov 2013 15:32:24 +0000 (15:32 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Sun, 10 Nov 2013 15:32:24 +0000 (15:32 +0000)
phpdbg_help.c
phpdbg_help.h
phpdbg_prompt.c

index b3971988417c03ec93d5aafb5417654a0609c3b9..4edc20bb55da29b770d942f61a4d042591ee5dda 100644 (file)
@@ -55,14 +55,14 @@ PHPDBG_HELP(compile) /* {{{ */
 
 PHPDBG_HELP(print) /* {{{ */
 {
-  printf("By default, print will show information about the current execution environment\n");
-  printf("To show specific information pass an expression to print, for example:\n");
-  printf("\tphpdbg> print opcodes[0]\n");
-  printf("Will show the opline @ 0\n");
-  printf("Available print commands:\n");
-  printf("\tNone\n");
+    printf("By default, print will show information about the current execution environment\n");
+    printf("To show specific information pass an expression to print, for example:\n");
+    printf("\tphpdbg> print opcodes[0]\n");
+    printf("Will show the opline @ 0\n");
+    printf("Available print commands:\n");
+    printf("\tNone\n");
 
-  return SUCCESS;
+    return SUCCESS;
 } /* }}} */
 
 PHPDBG_HELP(run) /* {{{ */ 
@@ -80,7 +80,19 @@ PHPDBG_HELP(eval) /* {{{ */
 
 PHPDBG_HELP(break) /* {{{ */
 {
-  printf("doing break help: %s\n", expr);
+    printf("Setting a breakpoint stops execution at a specific stage, the syntax is:\n");
+    printf("\tfile:line\n");
+    printf("[more to come]\n");
+    printf("For example:\n");
+    printf("\tphpdbg> break test.php:1\n");
+    printf("Will break execution on line 1 of test.php\n");
+  
+    return SUCCESS;
+} /* }}} */
 
-  return SUCCESS;
+PHPDBG_HELP(cont) /* {{{ */
+{
+    printf("Continues execution after a breakpoint is met\n");
+    printf("[Warnings about using stepping and break points here]\n");
+    return SUCCESS;
 } /* }}} */
index 7359812b700a75e070f7f594809b0146faacb0ad..ca510b942a5d79140b33ea2b892926f25d91859b 100644 (file)
@@ -39,6 +39,7 @@ PHPDBG_HELP(run);
 PHPDBG_HELP(eval);
 PHPDBG_HELP(print);
 PHPDBG_HELP(break);
+PHPDBG_HELP(cont);
 
 /**
  * Commands
@@ -52,6 +53,7 @@ static const phpdbg_command_t phpdbg_help_commands[] = {
   PHPDBG_HELP_D(eval,     "access to eval() allows you to affect the environment during execution"),
   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"),
   {NULL, 0, 0}
 };
 
index 54fa53f18fa0598b42f8bb4821f26a18e5bcc234..50a7fef922b290397ece1ba1b5347b270cdf2c12 100644 (file)
@@ -94,6 +94,10 @@ static PHPDBG_COMMAND(next) { /* {{{ */
     return PHPDBG_NEXT;
 } /* }}} */
 
+static PHPDBG_COMMAND(cont) { /* {{{ */
+    return SUCCESS;
+} /* }}} */
+
 static PHPDBG_COMMAND(run) { /* {{{ */
     if (PHPDBG_G(ops) || PHPDBG_G(exec)) {
         if (!PHPDBG_G(ops)) {
@@ -263,6 +267,7 @@ static const phpdbg_command_t phpdbg_prompt_commands[] = {
        PHPDBG_COMMAND_D(eval,      "evaluate some code"),
        PHPDBG_COMMAND_D(print,     "print something"),
        PHPDBG_COMMAND_D(break,     "set breakpoint"),
+       PHPDBG_COMMAND_D(cont,      "continue execution"),
        PHPDBG_COMMAND_D(back,      "show backtrace"),
        PHPDBG_COMMAND_D(help,      "show help menu"),
        PHPDBG_COMMAND_D(quit,      "exit phpdbg"),