Support continued event properly
This commit is contained in:
parent
0f0d684e92
commit
8e3a734141
2 changed files with 10 additions and 4 deletions
|
|
@ -1150,8 +1150,7 @@ class DebugSession( object ):
|
|||
pass
|
||||
|
||||
def OnEvent_continued( self, message ):
|
||||
# FIXME: allThreadsContinued ?
|
||||
self._stackTraceView.OnContinued()
|
||||
self._stackTraceView.OnContinued( message[ 'body' ] )
|
||||
self._codeView.SetCurrentFrame( None )
|
||||
|
||||
def Clear( self ):
|
||||
|
|
|
|||
|
|
@ -329,9 +329,16 @@ class StackTraceView( object ):
|
|||
else:
|
||||
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:
|
||||
if threadId is None:
|
||||
if allThreadsContinued:
|
||||
thread.Continued()
|
||||
elif thread.id == threadId:
|
||||
thread.Continued()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue