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) /* {{{ */
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;
} /* }}} */
PHPDBG_HELP(eval);
PHPDBG_HELP(print);
PHPDBG_HELP(break);
+PHPDBG_HELP(cont);
/**
* 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}
};
return PHPDBG_NEXT;
} /* }}} */
+static PHPDBG_COMMAND(cont) { /* {{{ */
+ return SUCCESS;
+} /* }}} */
+
static PHPDBG_COMMAND(run) { /* {{{ */
if (PHPDBG_G(ops) || PHPDBG_G(exec)) {
if (!PHPDBG_G(ops)) {
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"),