diff src/structs.h @ 24978:2818b8108d92 v8.2.3026

patch 8.2.3026: Vim9: cannot set breakpoint in compiled function Commit: https://github.com/vim/vim/commit/4f8f54280fa728b7d5a63b67d02b60a3b3dce543 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 20 19:28:14 2021 +0200 patch 8.2.3026: Vim9: cannot set breakpoint in compiled function Problem: Vim9: cannot set breakpoint in compiled function. Solution: Check for breakpoint when calling a function.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Jun 2021 19:30:03 +0200
parents 7e9e53a0368f
children 7ef7a211f6bf
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -1629,6 +1629,11 @@ typedef struct
 # endif
 
     garray_T	uf_lines;	// function lines
+
+    int		uf_debug_tick;	// when last checked for a breakpoint in this
+				// function.
+    int		uf_has_breakpoint;  // TRUE when a breakpoint has been set in
+				    // this function.
 # ifdef FEAT_PROFILE
     int		uf_profiling;	// TRUE when func is being profiled
     int		uf_prof_initialized;