patch 8.2.2996: Vim9: when debugging cannot inspect local variables
Problem: Vim9: when debugging cannot inspect local variables.
Solution: Make local variables available when debugging.
diff --git a/src/vim9.h b/src/vim9.h
index dd39071..04972dc 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -168,7 +168,8 @@
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 @@
// 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