summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-11 19:06:26 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-11 19:06:26 +0100
commitc6f9f739d32084923c3031cbf6f581f8c8bf7fd2 (patch)
tree4f20ee6cbf98f72b164337f14251020ecc07d410 /src/ex_docmd.c
parentc33ecb291518044f661c5fc10b704fc718321794 (diff)
patch 8.0.1505: debugger can't break on a conditionv8.0.1505
Problem: Debugger can't break on a condition. (Charles Campbell) Solution: Add ":breakadd expr". (Christian Brabandt, closes #859)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 4082636767..3dda3c0952 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -1174,6 +1174,13 @@ do_cmdline(
}
}
+ /* Check for the next breakpoint after a watchexpression */
+ if (breakpoint != NULL && has_watchexpr())
+ {
+ *breakpoint = dbg_find_breakpoint(FALSE, fname, sourcing_lnum);
+ *dbg_tick = debug_tick;
+ }
+
/*
* When not inside any ":while" loop, clear remembered lines.
*/