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.
diff --git a/src/debugger.c b/src/debugger.c
index b968463..52a0490 100644
--- a/src/debugger.c
+++ b/src/debugger.c
@@ -606,7 +606,7 @@
}
if (bp->dbg_type == DBG_FUNC)
- bp->dbg_name = vim_strsave(p);
+ bp->dbg_name = vim_strsave(STRNCMP(p, "g:", 2) == 0 ? p + 2 : p);
else if (here)
bp->dbg_name = vim_strsave(curbuf->b_ffname);
else if (bp->dbg_type == DBG_EXPR)