Mercurial > vim
diff src/vim9.h @ 25004:70f55a30f03c v8.2.3039
patch 8.2.3039: Vim9: breakpoint at a comment line does not work
Commit: https://github.com/vim/vim/commit/8cec9273d2518f2a9abcbd326722a2eba38d2a13
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 23 20:20:53 2021 +0200
patch 8.2.3039: Vim9: breakpoint at a comment line does not work
Problem: Vim9: breakpoint at a comment line does not work.
Solution: Add the comment line number to the debug instruction.
(closes #8429)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Jun 2021 20:30:03 +0200 |
parents | 71b1e2ef0069 |
children | 7901481ea280 |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -168,8 +168,7 @@ typedef enum { ISN_PROF_START, // start a line for profiling ISN_PROF_END, // end a line for profiling - ISN_DEBUG, // check for debug breakpoint, isn_arg.number is current - // number of local variables + ISN_DEBUG, // check for debug breakpoint, uses isn_arg.debug ISN_UNPACK, // unpack list into items, uses isn_arg.unpack ISN_SHUFFLE, // move item on stack up or down @@ -391,6 +390,12 @@ typedef struct { int invert; } tobool_T; +// arguments to ISN_DEBUG +typedef struct { + varnumber_T dbg_var_names_len; // current number of local variables + int dbg_break_lnum; // first line to break after +} debug_T; + /* * Instruction */ @@ -439,6 +444,7 @@ struct isn_S { tostring_T tostring; tobool_T tobool; getitem_T getitem; + debug_T debug; } isn_arg; };