Allow pausing individual threads (in theory)

This commit is contained in:
Ben Jackson 2020-11-20 23:18:20 +00:00
commit f0785c11f2
3 changed files with 41 additions and 1 deletions

View file

@ -491,6 +491,20 @@ class DebugSession( object ):
},
} )
@IfConnected()
def PauseThread( self ):
threadId = self._stackTraceView.GetSelectedThreadId()
if threadId is None:
utils.UserMessage( 'No thread selected' )
return
self._connection.DoRequest( None, {
'command': 'pause',
'arguments': {
'threadId': threadId,
},
} )
@IfConnected()
def ExpandVariable( self ):
self._variablesView.ExpandVariable()