summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-13 14:01:26 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-13 14:01:26 +0200
commite99d422bbd3e47620915bf89671673f0711671b4 (patch)
treeda9d46ec8f793ae3f70ddcd229bc4a34122a3170 /src/vim9.h
parente6174fd58d459722847c76f8c5aa1b08a49c3e0d (diff)
downloadvim-git-e99d422bbd3e47620915bf89671673f0711671b4.tar.gz
patch 8.2.2985: Vim9: a compiled function cannot be debuggedv8.2.2985
Problem: Vim9: a compiled function cannot be debugged. Solution: Add initial debugging support.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index d4d3b7d6c..f434602d2 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -168,6 +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_UNPACK, // unpack list into items, uses isn_arg.unpack
ISN_SHUFFLE, // move item on stack up or down
ISN_DROP, // pop stack and discard value
@@ -453,6 +455,8 @@ struct dfunc_S {
isn_T *df_instr_prof; // like "df_instr" with profiling
int df_instr_prof_count; // size of "df_instr_prof"
#endif
+ isn_T *df_instr_debug; // like "df_instr" with debugging
+ int df_instr_debug_count; // size of "df_instr_debug"
int df_varcount; // number of local variables
int df_has_closure; // one if a closure was created