Mercurial > vim
comparison src/debugger.c @ 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 | f11779c1d123 |
children | 078edc1821bf |
comparison
equal
deleted
inserted
replaced
24977:8572a0949d11 | 24978:2818b8108d92 |
---|---|
604 semsg(_(e_invarg2), arg); | 604 semsg(_(e_invarg2), arg); |
605 return FAIL; | 605 return FAIL; |
606 } | 606 } |
607 | 607 |
608 if (bp->dbg_type == DBG_FUNC) | 608 if (bp->dbg_type == DBG_FUNC) |
609 bp->dbg_name = vim_strsave(p); | 609 bp->dbg_name = vim_strsave(STRNCMP(p, "g:", 2) == 0 ? p + 2 : p); |
610 else if (here) | 610 else if (here) |
611 bp->dbg_name = vim_strsave(curbuf->b_ffname); | 611 bp->dbg_name = vim_strsave(curbuf->b_ffname); |
612 else if (bp->dbg_type == DBG_EXPR) | 612 else if (bp->dbg_type == DBG_EXPR) |
613 { | 613 { |
614 bp->dbg_name = vim_strsave(p); | 614 bp->dbg_name = vim_strsave(p); |