diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-11 19:06:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-11 19:06:26 +0100 |
commit | c6f9f739d32084923c3031cbf6f581f8c8bf7fd2 (patch) | |
tree | 4f20ee6cbf98f72b164337f14251020ecc07d410 /runtime | |
parent | c33ecb291518044f661c5fc10b704fc718321794 (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 'runtime')
-rw-r--r-- | runtime/doc/repeat.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index d0475b7dac..2e9746bc6f 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -806,6 +806,19 @@ DEFINING BREAKPOINTS < Note that this only works for commands that are executed when sourcing the file, not for a function defined in that file. +:breaka[dd] expr {expression} + Sets a breakpoint, that will break whenever the {expression} + evaluates to a different value. Example: > + :breakadd expr g:lnum + +< Will break, whenever the global variable lnum changes. + Note if you watch a |script-variable| this will break + when switching scripts, since the script variable is only + valid in the script where it has been defined and if that + script is called from several other scripts, this will stop + whenever that particular variable will become visible or + unaccessible again. + The [lnum] is the line number of the breakpoint. Vim will stop at or after this line. When omitted line 1 is used. |