Fix tracebnack when no source in stack frame
This commit is contained in:
parent
415a601963
commit
6944cb7c1f
2 changed files with 3 additions and 3 deletions
|
|
@ -169,11 +169,11 @@ class StackTraceView( object ):
|
|||
|
||||
def _JumpToFrame( self, frame ):
|
||||
def do_jump():
|
||||
if 'line' in frame and frame[ 'line' ]:
|
||||
if 'line' in frame and frame[ 'line' ] > 0:
|
||||
self._currentFrame = frame
|
||||
return self._session.SetCurrentFrame( self._currentFrame )
|
||||
|
||||
source = frame[ 'source' ]
|
||||
source = frame.get( 'source', {} )
|
||||
if source.get( 'sourceReference', 0 ) > 0:
|
||||
def handle_resolved_source( resolved_source ):
|
||||
frame[ 'source' ] = resolved_source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue