summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r--phpdbg_prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index bc2e667e6b..9a9f45b8fa 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -1006,7 +1006,9 @@ PHPDBG_COMMAND(watch) /* {{{ */
phpdbg_list_watchpoints(TSRMLS_C);
} else switch (param->type) {
case STR_PARAM:
- phpdbg_create_var_watchpoint(param->str, param->len TSRMLS_CC);
+ if (phpdbg_create_var_watchpoint(param->str, param->len TSRMLS_CC) != FAILURE) {
+ phpdbg_notice("Set watchpoint on %.*s", (int)param->len, param->str);
+ }
break;
phpdbg_default_switch_case();