0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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.
This commit is contained in:
Bram Moolenaar
2021-06-14 20:40:37 +02:00
parent 90478f35a8
commit b69c6fb7b4
7 changed files with 113 additions and 17 deletions

View File

@@ -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