Skip to content

Commit 24c6e3c

Browse files
committed
add oplog status to context information on print command
1 parent ae5f0d0 commit 24c6e3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

phpdbg_prompt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,12 @@ static PHPDBG_COMMAND(print) /* {{{ */
402402
#else
403403
phpdbg_writeln("Readline\tno");
404404
#endif
405+
405406
phpdbg_writeln("Exec\t\t%s", PHPDBG_G(exec) ? PHPDBG_G(exec) : "none");
406407
phpdbg_writeln("Compiled\t%s", PHPDBG_G(ops) ? "yes" : "no");
407408
phpdbg_writeln("Stepping\t%s", (PHPDBG_G(flags) & PHPDBG_IS_STEPPING) ? "on" : "off");
408409
phpdbg_writeln("Quietness\t%s", (PHPDBG_G(flags) & PHPDBG_IS_QUIET) ? "on" : "off");
410+
phpdbg_writeln("Oplog\t\t%s", PHPDBG_G(oplog) ? "on" : "off");
409411

410412
if (PHPDBG_G(ops)) {
411413
phpdbg_writeln("Opcodes\t\t%d", PHPDBG_G(ops)->last);
@@ -416,6 +418,7 @@ static PHPDBG_COMMAND(print) /* {{{ */
416418
phpdbg_writeln("Variables\tNone");
417419
}
418420
}
421+
419422
phpdbg_writeln("Executing\t%s", EG(in_execution) ? "yes" : "no");
420423
if (EG(in_execution)) {
421424
phpdbg_writeln("VM Return\t%d", PHPDBG_G(vmret));

0 commit comments

Comments
 (0)