StepOut and Continue
This commit is contained in:
parent
c90e9faf3d
commit
f55dc8cd8e
3 changed files with 27 additions and 2 deletions
|
|
@ -78,8 +78,10 @@ class DebugSession( object ):
|
|||
self._uiTab = vim.current.tabpage
|
||||
self._codeWindow = vim.current.window
|
||||
|
||||
vim.command( 'nnoremenu WinBar.Continute :call vimspector#Continue()<CR>' )
|
||||
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( 'vspl' )
|
||||
vim.command( 'enew' )
|
||||
|
|
@ -142,6 +144,22 @@ class DebugSession( object ):
|
|||
},
|
||||
} )
|
||||
|
||||
def StepOut( self ):
|
||||
self._DoRequest( None, {
|
||||
'command': 'stepOut',
|
||||
'arguments': {
|
||||
'threadId': self._currentThread
|
||||
},
|
||||
} )
|
||||
|
||||
def Continue( self ):
|
||||
self._DoRequest( None, {
|
||||
'command': 'continue',
|
||||
'arguments': {
|
||||
'threadId': self._currentThread
|
||||
},
|
||||
} )
|
||||
|
||||
|
||||
def _DoRequest( self, handler, msg ):
|
||||
this_id = self._next_message_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue