Mercurial > vim
diff src/ex_cmds2.c @ 12678:116b7394b8af v8.0.1217
patch 8.0.1217: can't use remote eval to inspect vars in debug mode
commit https://github.com/vim/vim/commit/d99388ba8535a6fecf7d0bf7b982832c0b816062
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 26 14:28:32 2017 +0200
patch 8.0.1217: can't use remote eval to inspect vars in debug mode
Problem: Can't use remote eval to inspect vars in debug mode.
Solution: Don't discard the call stack in debug mode. (closes https://github.com/vim/vim/issues/2237, https://github.com/vim/vim/issues/2247)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Oct 2017 14:30:04 +0200 |
parents | 20aacdca367d |
children | ebb4f6c93598 |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -131,6 +131,7 @@ do_debug(char_u *cmd) redir_off = TRUE; /* don't redirect debug commands */ State = NORMAL; + debug_mode = TRUE; if (!debug_did_msg) MSG(_("Entering Debug mode. Type \"cont\" to continue.")); @@ -319,6 +320,7 @@ do_debug(char_u *cmd) msg_scroll = save_msg_scroll; lines_left = Rows - 1; State = save_State; + debug_mode = FALSE; did_emsg = save_did_emsg; cmd_silent = save_cmd_silent; msg_silent = save_msg_silent;