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
|
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 ):
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue