Add Pause command

This commit is contained in:
Ben Jackson 2018-05-20 18:09:19 +01:00
commit a5c773932e
2 changed files with 13 additions and 0 deletions

View file

@ -85,6 +85,7 @@ class DebugSession( object ):
vim.command( 'nnoremenu WinBar.Next :call vimspector#StepOver()<CR>' )
vim.command( 'nnoremenu WinBar.Step :call vimspector#StepInto()<CR>' )
vim.command( 'nnoremenu WinBar.Finish :call vimspector#StepOut()<CR>' )
vim.command( 'nnoremenu WinBar.Pause :call vimspector#Pause()<CR>' )
vim.command( 'vspl' )
vim.command( 'enew' )
@ -226,6 +227,14 @@ class DebugSession( object ):
},
} )
def Pause( self ):
self._DoRequest( None, {
'command': 'pause',
'arguments': {
'threadId': self._currentThread
},
} )
def _DoRequest( self, handler, msg ):
this_id = self._next_message_id