summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-04-13 17:34:27 +0200
committerBob Weinand <bobwei9@hotmail.com>2014-04-13 17:34:27 +0200
commiteae91d9de78a44410c43c18bb42e83e09bd7c5ba (patch)
tree829f6d4e1aed14be526741c7328b16fb8096f3e1 /phpdbg_prompt.c
parentce7097fb607a43396aa2785cae07de4d6a196f74 (diff)
downloadphp-git-eae91d9de78a44410c43c18bb42e83e09bd7c5ba.tar.gz
Added help
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();