Skip to content

Commit

Permalink
Log invalid container references.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Feb 9, 2017
1 parent 837b48c commit d813f0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adapter/debugsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ def DEBUG_variables(self, args):
container_handle = args['variablesReference']
container = self.var_refs.get(container_handle)
if container is None:
raise Exception('Invalid variables reference: %d' % container_handle)
log.error('Invalid variables reference: %d', container_handle)
return
if isinstance(container, lldb.SBFrame):
# args, locals, statics, in_scope_only
vars_iter = SBValueListIter(container.GetVariables(True, True, False, True))
Expand Down

0 comments on commit d813f0d

Please sign in to comment.