summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-09-02 18:49:06 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-02 18:49:06 +0200
commit26a4484da20039b61f18d3565a4b4339c4d1f7e3 (patch)
tree36b3d0dada37e17686da0627af5cda5848658052 /src/vim9.h
parent04626c243c47af91c2580eaf23e12286180e0e81 (diff)
downloadvim-git-26a4484da20039b61f18d3565a4b4339c4d1f7e3.tar.gz
patch 8.2.3395: Vim9: expression breakpoint not checked in :def functionv8.2.3395
Problem: Vim9: expression breakpoint not checked in :def function. Solution: Always compile a function for debugging if there is an expression breakpoint. (closes #8803)
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 67c9a710a..0fc1ab5d4 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -513,14 +513,14 @@ extern garray_T def_functions;
// Keep in sync with COMPILE_TYPE()
#ifdef FEAT_PROFILE
# define INSTRUCTIONS(dfunc) \
- (debug_break_level > 0 || dfunc->df_ufunc->uf_has_breakpoint \
+ (debug_break_level > 0 || may_break_in_function(dfunc->df_ufunc) \
? (dfunc)->df_instr_debug \
: ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \
? (dfunc)->df_instr_prof \
: (dfunc)->df_instr))
#else
# define INSTRUCTIONS(dfunc) \
- (debug_break_level > 0 || dfunc->df_ufunc->uf_has_breakpoint \
+ (debug_break_level > 0 || may_break_in_function(dfunc->df_ufunc) \
? (dfunc)->df_instr_debug \
: (dfunc)->df_instr)
#endif