Keep trying to load a real stack frame until we find one
This commit is contained in:
parent
b6a9cba52e
commit
306854cbd6
1 changed files with 2 additions and 3 deletions
|
|
@ -97,8 +97,7 @@ class StackTraceView( object ):
|
||||||
thread[ '_frames' ] = message[ 'body' ][ 'stackFrames' ]
|
thread[ '_frames' ] = message[ 'body' ][ 'stackFrames' ]
|
||||||
if infer_current_frame:
|
if infer_current_frame:
|
||||||
for frame in thread[ '_frames' ]:
|
for frame in thread[ '_frames' ]:
|
||||||
if frame[ 'source' ]:
|
if self._JumpToFrame( frame ):
|
||||||
self._JumpToFrame( frame )
|
|
||||||
break
|
break
|
||||||
|
|
||||||
self._DrawThreads()
|
self._DrawThreads()
|
||||||
|
|
@ -129,7 +128,7 @@ class StackTraceView( object ):
|
||||||
|
|
||||||
def _JumpToFrame( self, frame ):
|
def _JumpToFrame( self, frame ):
|
||||||
self._currentFrame = frame
|
self._currentFrame = frame
|
||||||
self._session.SetCurrentFrame( self._currentFrame )
|
return self._session.SetCurrentFrame( self._currentFrame )
|
||||||
|
|
||||||
def OnStopped( self, event ):
|
def OnStopped( self, event ):
|
||||||
if 'threadId' in event:
|
if 'threadId' in event:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue