Add a debugger breakpoint
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Add a debugger breakpoint.
Breakpoints
- Count
0
Command entered · ready to apply
Breakpoints
- Count
0
Command line
- Typed text
:breakadd func 1 Twice- Insertion offset
22
The first breakpoint is stored for line 1 of Twice; setting it does not call the function.
Breakpoints
- 1
function Twice, line 1
Before & after
Before
Breakpoints
- Count
0
After
Breakpoints
- 1
function Twice, line 1
Documentation-backed illustration. +eval debugger support and no previous breakpoints; :breakadd accepts names before a function is defined. The first breakpoint is stored for line 1 of Twice; setting it does not call the function. Primary help: :breakadd.
alpha
beta
gammaCursor on line 1, column 1Details & Vim help
Add a debugger breakpoint. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :breaka[dd] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.