summaryrefslogtreecommitdiffstats
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-14 20:40:37 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-14 20:40:37 +0200
commitb69c6fb7b423ddc4578b093cb19257cad459dfae (patch)
tree609d4100420eca145bc91dad37fefde05500475d /src/vim9.h
parent90478f35a8c78e2e10a4b4a8f135998dc04c91fa (diff)
patch 8.2.2996: Vim9: when debugging cannot inspect local variablesv8.2.2996
Problem: Vim9: when debugging cannot inspect local variables. Solution: Make local variables available when debugging.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim9.h b/src/vim9.h
index dd390716b5..04972dcecf 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -168,7 +168,8 @@ 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_DEBUG, // check for debug breakpoint, isn_arg.number is current
+ // number of local variables
ISN_UNPACK, // unpack list into items, uses isn_arg.unpack
ISN_SHUFFLE, // move item on stack up or down
@@ -447,6 +448,7 @@ struct dfunc_S {
// was compiled.
garray_T df_def_args_isn; // default argument instructions
+ garray_T df_var_names; // names of local vars
// After compiling "df_instr" and/or "df_instr_prof" is not NULL.
isn_T *df_instr; // function body to be executed