Skip to content

Commit

Permalink
Increase timeout and yet more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Jul 27, 2019
1 parent 17b85d2 commit 6f9fe0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions python3/vimspector/debug_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,20 @@ def Reset( self ):
self._Reset()

def _Reset( self ):
self._logger.info( "Debugging complete." )
if self._uiTab:
self._logger.debug( "Clearing down UI with stack_trace: %s",
traceback.format_stack() )
vim.current.tabpage = self._uiTab
self._stackTraceView.Reset()
self._variablesView.Reset()
self._outputView.Reset()
self._codeView.Reset()
vim.command( 'tabclose!' )
self._stackTraceView = None
self._variablesView = None
self._outputView = None
self._codeView = None
self._uiTab = None

# make sure that we're displaying signs in any still-open buffers
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/autoload/vimspector/test/setup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function! vimspector#test#setup#Reset() abort
\ } )
call WaitForAssert( {->
\ assert_true( pyxeval( '_vimspector_session._uiTab is None' ) )
\ } )
\ }, 10000 )

call vimspector#test#signs#AssertSignGroupEmpty( 'VimspectorCode' )
call vimspector#ClearBreakpoints()
Expand Down

0 comments on commit 6f9fe0c

Please sign in to comment.