Support continued event properly

This commit is contained in:
Ben Jackson 2020-11-20 23:42:08 +00:00
commit 8e3a734141
2 changed files with 10 additions and 4 deletions

View file

@ -1150,8 +1150,7 @@ class DebugSession( object ):
pass pass
def OnEvent_continued( self, message ): def OnEvent_continued( self, message ):
# FIXME: allThreadsContinued ? self._stackTraceView.OnContinued( message[ 'body' ] )
self._stackTraceView.OnContinued()
self._codeView.SetCurrentFrame( None ) self._codeView.SetCurrentFrame( None )
def Clear( self ): def Clear( self ):

View file

@ -329,9 +329,16 @@ class StackTraceView( object ):
else: else:
return do_jump() return do_jump()
def OnContinued( self, threadId = None ): def OnContinued( self, event = None ):
threadId = None
allThreadsContinued = True
if event is not None:
threadId = event[ 'threadId' ]
allThreadsContinued = event.get( 'allThreadsContinued', False )
for thread in self._threads: for thread in self._threads:
if threadId is None: if allThreadsContinued:
thread.Continued() thread.Continued()
elif thread.id == threadId: elif thread.id == threadId:
thread.Continued() thread.Continued()