forked from aniani/vim
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)
This commit is contained in:
10
src/vim9.h
10
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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user