patch 8.2.3057: Vim9: debugger test fails with normal features and +terminal
Problem: Vim9: debugger test fails with normal features and +terminal.
(Dominique Pellé)
Solution: Adjust the INSTRUCTIONS macro. (closes #8460)
diff --git a/src/vim9.h b/src/vim9.h
index 97b9a3e..b48a2f7 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -518,7 +518,7 @@
: (dfunc)->df_instr))
#else
# define INSTRUCTIONS(dfunc) \
- (debug_break_level > 0 \
+ (debug_break_level > 0 || dfunc->df_ufunc->uf_has_breakpoint \
? (dfunc)->df_instr_debug \
: (dfunc)->df_instr)
#endif