Skip to content

Commit

Permalink
Fixes issue where selected stack frame was not being cleared when res…
Browse files Browse the repository at this point in the history
…uming
  • Loading branch information
daveleroy committed Sep 25, 2019
1 parent 47c7a5c commit d7a4e2d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/debugger/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,18 +444,22 @@ def _on_continued_event(self, event: dap.ContinuedEvent) -> None:

event_thread = self._threadstateful_for_id(event.threadId)
event_thread.on_continued()
if event_thread == self.selected_threadstateful:
self.selected_frame = None
self.selected_thread_explicitly = False


if event.allThreadsContinued:
self.selected_frame = None
self.selected_thread_explicitly = False
self.on_selected_frame(None, None)

for thread in self.threads_stateful:
if event_thread is not thread:
thread.on_continued()

elif event_thread == self.selected_threadstateful:
self.selected_frame = None
self.selected_thread_explicitly = False
self.on_selected_frame(None, None)

self._refresh_state()

def _on_stopped_event(self, event: dap.StoppedEvent) -> None:
Expand Down

0 comments on commit d7a4e2d

Please sign in to comment.