From c6f9f739d32084923c3031cbf6f581f8c8bf7fd2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 11 Feb 2018 19:06:26 +0100 Subject: patch 8.0.1505: debugger can't break on a condition Problem: Debugger can't break on a condition. (Charles Campbell) Solution: Add ":breakadd expr". (Christian Brabandt, closes #859) --- src/ex_docmd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ex_docmd.c') diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 408263676..3dda3c095 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. */ -- cgit v1.2.1