# HG changeset patch # User Bram Moolenaar # Date 1663069503 -7200 # Node ID 44e53d136c5a614806b790e8f2b9ee059b43e65d # Parent e211700a4cc7f273024d3b8361db52b164eaaac2 patch 9.0.0456: function called at debug prompt is also debugged Commit: https://github.com/vim/vim/commit/b1842de5ca77205993e8ef76cf29803822e0e3ab Author: Bram Moolenaar Date: Tue Sep 13 12:36:57 2022 +0100 patch 9.0.0456: function called at debug prompt is also debugged Problem: Function called at debug prompt is also debugged. Solution: Reset the debug level while entering the debug command. (closes #11118) diff --git a/src/debugger.c b/src/debugger.c --- a/src/debugger.c +++ b/src/debugger.c @@ -135,9 +135,14 @@ do_debug(char_u *cmd) ignore_script = TRUE; } + // don't debug any function call, e.g. from an expresion mapping + n = debug_break_level; + debug_break_level = -1; + vim_free(cmdline); cmdline = getcmdline_prompt('>', NULL, 0, EXPAND_NOTHING, NULL); + debug_break_level = n; if (typeahead_saved) { restore_typeahead(&typeaheadbuf, TRUE); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 456, +/**/ 455, /**/ 454,