com php-src: ...: phpdbg.c phpdbg_help.c
| From: | Bob Weinand | Date: | Wed, 13 Nov 2013 14:32:36 +0000 |
| Subject: | com php-src: ...: phpdbg.c phpdbg_help.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75001@lists.php.net to get a copy of this message | ||
Commit: b81005f94b0d6a8d1c15671c4ceea89e1b725da3
Author: krakjoe <joe.watkins@live.co.uk> Wed, 13 Nov 2013 14:32:36 +0000
Parents: 57ae58c9bf2751433e2f355e3bffaea7679cc01d
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b81005f94b0d6a8d1c15671c4ceea89e1b725da3
Log:
..
Changed paths:
M phpdbg..c
M phpdbg_help.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index f8bdd6a..5dcf6f7 100644
--- 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) {
diff --git a/phpdbg_help.c b/phpdbg_help.c
index c337ec9..fb987d1 100644
--- a/phpdbg_help.c
+++ b/phpdbg_help.c
@@ -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;
} /* }}} */