Very basic support for watch expressions

You can currently only add them, not remoove them and you have to pass
the expression in the function call, but once added the variable
breakdown works nicely.
This commit is contained in:
Ben Jackson 2018-05-27 16:59:06 +01:00
commit 533b2aa0d5
3 changed files with 56 additions and 5 deletions

View file

@ -69,6 +69,10 @@ function! vimspector#GoToFrame() abort
py3 _vimspector_session.GoToFrame()
endfunction
function! vimspector#AddWatch( expr ) abort
py3 _vimspector_session.AddWatch( vim.eval( 'a:expr' ) )
endfunction
" Boilerplate {{{
let &cpo=s:save_cpo
unlet s:save_cpo