Mercurial > vim
comparison runtime/doc/repeat.txt @ 13262:69278c25429d v8.0.1505
patch 8.0.1505: debugger can't break on a condition
commit https://github.com/vim/vim/commit/c6f9f739d32084923c3031cbf6f581f8c8bf7fd2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 11 19:06:26 2018 +0100
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 https://github.com/vim/vim/issues/859)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Feb 2018 19:15:05 +0100 |
parents | a6d3e2081544 |
children | acd7eaa13d2b |
comparison
equal
deleted
inserted
replaced
13261:fa53b212be26 | 13262:69278c25429d |
---|---|
804 Like doing: > | 804 Like doing: > |
805 :breakadd file <cursor-line> <current-file> | 805 :breakadd file <cursor-line> <current-file> |
806 < Note that this only works for commands that are executed when | 806 < Note that this only works for commands that are executed when |
807 sourcing the file, not for a function defined in that file. | 807 sourcing the file, not for a function defined in that file. |
808 | 808 |
809 :breaka[dd] expr {expression} | |
810 Sets a breakpoint, that will break whenever the {expression} | |
811 evaluates to a different value. Example: > | |
812 :breakadd expr g:lnum | |
813 | |
814 < Will break, whenever the global variable lnum changes. | |
815 Note if you watch a |script-variable| this will break | |
816 when switching scripts, since the script variable is only | |
817 valid in the script where it has been defined and if that | |
818 script is called from several other scripts, this will stop | |
819 whenever that particular variable will become visible or | |
820 unaccessible again. | |
821 | |
809 The [lnum] is the line number of the breakpoint. Vim will stop at or after | 822 The [lnum] is the line number of the breakpoint. Vim will stop at or after |
810 this line. When omitted line 1 is used. | 823 this line. When omitted line 1 is used. |
811 | 824 |
812 *:debug-name* | 825 *:debug-name* |
813 {name} is a pattern that is matched with the file or function name. The | 826 {name} is a pattern that is matched with the file or function name. The |