Mercurial > vim
comparison src/vim9.h @ 25719:154663508d9b v8.2.3395
patch 8.2.3395: Vim9: expression breakpoint not checked in :def function
Commit: https://github.com/vim/vim/commit/26a4484da20039b61f18d3565a4b4339c4d1f7e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 2 18:49:06 2021 +0200
patch 8.2.3395: Vim9: expression breakpoint not checked in :def function
Problem: Vim9: expression breakpoint not checked in :def function.
Solution: Always compile a function for debugging if there is an expression
breakpoint. (closes #8803)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Sep 2021 19:00:04 +0200 |
parents | 6f13d9ea0d04 |
children | fe8d153cb268 |
comparison
equal
deleted
inserted
replaced
25718:c3adc383b30f | 25719:154663508d9b |
---|---|
511 #define LNUM_VARIABLE_RANGE_ABOVE -888 | 511 #define LNUM_VARIABLE_RANGE_ABOVE -888 |
512 | 512 |
513 // Keep in sync with COMPILE_TYPE() | 513 // Keep in sync with COMPILE_TYPE() |
514 #ifdef FEAT_PROFILE | 514 #ifdef FEAT_PROFILE |
515 # define INSTRUCTIONS(dfunc) \ | 515 # define INSTRUCTIONS(dfunc) \ |
516 (debug_break_level > 0 || dfunc->df_ufunc->uf_has_breakpoint \ | 516 (debug_break_level > 0 || may_break_in_function(dfunc->df_ufunc) \ |
517 ? (dfunc)->df_instr_debug \ | 517 ? (dfunc)->df_instr_debug \ |
518 : ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \ | 518 : ((do_profiling == PROF_YES && (dfunc->df_ufunc)->uf_profiling) \ |
519 ? (dfunc)->df_instr_prof \ | 519 ? (dfunc)->df_instr_prof \ |
520 : (dfunc)->df_instr)) | 520 : (dfunc)->df_instr)) |
521 #else | 521 #else |
522 # define INSTRUCTIONS(dfunc) \ | 522 # define INSTRUCTIONS(dfunc) \ |
523 (debug_break_level > 0 || dfunc->df_ufunc->uf_has_breakpoint \ | 523 (debug_break_level > 0 || may_break_in_function(dfunc->df_ufunc) \ |
524 ? (dfunc)->df_instr_debug \ | 524 ? (dfunc)->df_instr_debug \ |
525 : (dfunc)->df_instr) | 525 : (dfunc)->df_instr) |
526 #endif | 526 #endif |