Allow setting the current thread, use a sign to highlight the line with the current thread

This commit is contained in:
Ben Jackson 2020-11-21 14:34:56 +00:00
commit 53b1d12447
6 changed files with 110 additions and 50 deletions

View file

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