mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
fixup help, behaviour of step command when not executing
This commit is contained in:
parent
e9668d4ce8
commit
c1e12316f1
@ -711,11 +711,13 @@ phpdbg_help_text_t phpdbg_help_text[] = {
|
||||
"populate these tables for a given execution context."
|
||||
},
|
||||
|
||||
//*********** what is the difference between n and s ???
|
||||
{"continue",
|
||||
"The **continue** command causes control to be passed back to the vm, continuing execution. The next "
|
||||
"opline will be executed if **step** is set **on**. Otherwise execution will continue to the next "
|
||||
"breakpoint or script completion" CR CR
|
||||
"Continue with execution after hitting a break or watchpoint" CR CR
|
||||
|
||||
"**Examples**" CR CR
|
||||
" $P continue" CR
|
||||
" $P c" CR
|
||||
" Continue executing until the next break or watchpoint" CR CR
|
||||
|
||||
"Note **continue** will trigger a \"not running\" error if not executing."
|
||||
},
|
||||
@ -863,7 +865,7 @@ phpdbg_help_text_t phpdbg_help_text[] = {
|
||||
},
|
||||
|
||||
{"step",
|
||||
"Execute opcodes until beginning on next line" CR CR
|
||||
"Execute opcodes until next line" CR CR
|
||||
|
||||
"**Examples**" CR CR
|
||||
|
||||
|
@ -424,7 +424,9 @@ int phpdbg_compile(TSRMLS_D) /* {{{ */
|
||||
|
||||
PHPDBG_COMMAND(step) /* {{{ */
|
||||
{
|
||||
PHPDBG_G(flags) |= PHPDBG_IS_STEPPING;
|
||||
if (EG(in_execution)) {
|
||||
PHPDBG_G(flags) |= PHPDBG_IS_STEPPING;
|
||||
}
|
||||
|
||||
return PHPDBG_NEXT;
|
||||
} /* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user