Mercurial > vim
diff src/globals.h @ 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 | 895da0cbb16e |
children | 351cf7c67bbe |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -922,9 +922,13 @@ EXTERN char_u composing_hangul_buffer[5 * "Visual_mode" When State is NORMAL or INSERT. * "finish_op" When State is NORMAL, after typing the operator and before * typing the motion command. + * "debug_mode" Debug mode. */ EXTERN int State INIT(= NORMAL); /* This is the current state of the * command interpreter. */ +#ifdef FEAT_EVAL +EXTERN int debug_mode INIT(= FALSE); +#endif EXTERN int finish_op INIT(= FALSE);/* TRUE while an operator is pending */ EXTERN long opcount INIT(= 0); /* count for pending operator */