diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-26 15:37:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-26 15:37:02 +0200 |
commit | a5d0423fa16f18b4576a2a07e50034e489587a7d (patch) | |
tree | 67bfe997079bb1a9f17db6a829b29d6369a922a3 /src/debugger.c | |
parent | d66cdcd43a598825add743bc95642cd8ed705252 (diff) | |
download | vim-git-a5d0423fa16f18b4576a2a07e50034e489587a7d.tar.gz |
patch 8.2.1297: when a test fails it's often not easy to see wherev8.2.1297
Problem: When a test fails it's often not easy to see what the call stack
is.
Solution: Add more entries from the call stack in the exception message.
Diffstat (limited to 'src/debugger.c')
-rw-r--r-- | src/debugger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debugger.c b/src/debugger.c index 91ab5ee1f..00fb9c8f8 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -105,7 +105,7 @@ do_debug(char_u *cmd) vim_free(debug_newval); debug_newval = NULL; } - sname = estack_sfile(); + sname = estack_sfile(FALSE); if (sname != NULL) msg((char *)sname); vim_free(sname); @@ -344,7 +344,7 @@ do_checkbacktracelevel(void) } else { - char_u *sname = estack_sfile(); + char_u *sname = estack_sfile(FALSE); int max = get_maxbacktrace_level(sname); if (debug_backtrace_level > max) @@ -365,7 +365,7 @@ do_showbacktrace(char_u *cmd) int i = 0; int max; - sname = estack_sfile(); + sname = estack_sfile(FALSE); max = get_maxbacktrace_level(sname); if (sname != NULL) { |