Browse Source

show conditionals

pull/550/head
krakjoe 13 years ago
parent
commit
f6d45107b2
  1. 7
      phpdbg_prompt.c
  2. BIN
      tutorials/show-conditionals.png

7
phpdbg_prompt.c

@ -698,12 +698,13 @@ zend_vm_enter:
}\ }\
} while(!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) } while(!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING))
phpdbg_print_opline(
execute_data, 0 TSRMLS_CC);
/* allow conditional breakpoints to access the vm uninterrupted */ /* allow conditional breakpoints to access the vm uninterrupted */
if (!(PHPDBG_G(flags) & PHPDBG_IN_COND_BP)) { if (!(PHPDBG_G(flags) & PHPDBG_IN_COND_BP)) {
/* not while in conditionals */
phpdbg_print_opline(
execute_data, 0 TSRMLS_CC);
/* conditions cannot be executed by eval()'d code */ /* conditions cannot be executed by eval()'d code */
if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL) if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL)
&& (PHPDBG_G(flags) & PHPDBG_HAS_COND_BP) && (PHPDBG_G(flags) & PHPDBG_HAS_COND_BP)

BIN
tutorials/show-conditionals.png

After

Width: 900  |  Height: 457  |  Size: 108 KiB

Loading…
Cancel
Save