]> granicus.if.org Git - php/commitdiff
...
authorkrakjoe <joe.watkins@live.co.uk>
Wed, 13 Nov 2013 14:32:36 +0000 (14:32 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Wed, 13 Nov 2013 14:32:36 +0000 (14:32 +0000)
phpdbg.c
phpdbg_help.c

index f8bdd6aa784f335c24ec45fce3f3d3d2ceaee582..5dcf6f766189e7bf91dfd80faf2d8fc76a8532f2 100644 (file)
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -66,7 +66,7 @@ static void php_phpdbg_destroy_bp_methods(void *brake) /* {{{ */
 
 static void php_phpdbg_destroy_bp_condition(void *data) /* {{{ */
 {
-    phpdbg_breakcond_t *brake = *(phpdbg_breakcond_t**) data;
+    phpdbg_breakcond_t *brake = (phpdbg_breakcond_t*) data;
     
     if (brake) {
         if (brake->ops) {
index c337ec92142a492ff0c9f6cf39f211d00317dc61..fb987d131ac5715d1e245998d65740e02405b23d 100644 (file)
@@ -118,9 +118,14 @@ PHPDBG_HELP(break) /* {{{ */
        phpdbg_writeln("Will break at the opline with the address provided (addresses are shown during execution)");
        phpdbg_writeln("\t%sbreak 200", PROMPT);
        phpdbg_writeln("Will break at line 200 of the currently executing file");
+       phpdbg_writeln("\t%sbreak on ($expression == true)", PROMPT);
+       phpdbg_writeln("Will break when the condition evaluates to true");
        phpdbg_writeln(EMPTY);
        phpdbg_writeln("It is important to note, an address is only valid for the current compiled representation of the script");
        phpdbg_writeln("If you have to clean the environment and recompile then your opline break points will be invalid");
+       phpdbg_writeln(EMPTY);
+       phpdbg_writeln("Conditional breaks are costly, use them sparingly !!");
+       
        return SUCCESS;
 } /* }}} */