summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-26 14:28:32 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-26 14:28:32 +0200
commitd99388ba8535a6fecf7d0bf7b982832c0b816062 (patch)
tree476c1942e2c2e604001ba712cfea4af8df49a0d4 /src/ex_cmds2.c
parent6ce650480844bfaa5410874416b4a2e15f40b870 (diff)
downloadvim-git-d99388ba8535a6fecf7d0bf7b982832c0b816062.tar.gz
patch 8.0.1217: can't use remote eval to inspect vars in debug modev8.0.1217
Problem: Can't use remote eval to inspect vars in debug mode. Solution: Don't discard the call stack in debug mode. (closes #2237, #2247)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index e9a9a6de6..2eef050ee 100644
--- 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;