diff options
Diffstat (limited to 'phpdbg_set.c')
| -rw-r--r-- | phpdbg_set.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpdbg_set.c b/phpdbg_set.c index aeb882657e..888da8f77d 100644 --- a/phpdbg_set.c +++ b/phpdbg_set.c @@ -36,6 +36,7 @@ const phpdbg_command_t phpdbg_set_commands[] = { PHPDBG_SET_COMMAND_D(color, "usage: set color <element> <color>", 'c', set_color, NULL, "ss"), PHPDBG_SET_COMMAND_D(colors, "usage: set colors [<on|off>]", 'C', set_colors, NULL, "|b"), #endif + PHPDBG_SET_COMMAND_D(step, "usage: set oplog [<on|off]", 's', set_step, NULL, "|b"), PHPDBG_SET_COMMAND_D(oplog, "usage: set oplog [<output>]", 'O', set_oplog, NULL, "|s"), PHPDBG_SET_COMMAND_D(break, "usage: set break id [<on|off>]", 'b', set_break, NULL, "l|b"), PHPDBG_SET_COMMAND_D(breaks, "usage: set breaks [<on|off>]", 'B', set_breaks, NULL, "|b"), @@ -100,6 +101,20 @@ PHPDBG_SET(breaks) /* {{{ */ return SUCCESS; } /* }}} */ +PHPDBG_SET(step) /* {{{ */ +{ + if (param->num) { + PHPDBG_G(flags) |= PHPDBG_IS_OPLINE_STEPPING; + } else { + PHPDBG_G(flags) &= ~PHPDBG_IS_OPLINE_STEPPING; + } + + phpdbg_notice("Stepping opcode-by-opcode %s", + (PHPDBG_G(flags) & PHPDBG_IS_STEPPING) ? "on" : "off"); + + return SUCCESS; +} /* }}} */ + #ifndef _WIN32 PHPDBG_SET(color) /* {{{ */ { |
