Separate watches and scopes

They are related (and share code) but make more sense separately
This commit is contained in:
Ben Jackson 2018-06-03 00:20:07 +01:00
commit fa775f4499
4 changed files with 82 additions and 43 deletions

View file

@ -64,7 +64,9 @@ class StackTraceView( object ):
if not message[ 'body' ][ 'threads' ]:
# This is a protocol error. It is required to return at least one!
raise ValueError( 'Server returned no threads. Is it running?' )
utils.UserMessage( 'Server returned no threads. Is it running?',
persist = True )
return
for thread in message[ 'body' ][ 'threads' ]:
self._threads.append( thread )