Skip to content

Stacktrace view loses focus on stopped thread #34246

@DatGuyJonathan

Description

@DatGuyJonathan
  • VSCode Version: 1.16.0-insider
  • OS Version: OSX 10.11.6

Steps to Reproduce:

  1. Start debugger session with a debugger extension that supports multiple stopped threads.
  2. Stop at least two threads.
  3. Step over with the second thread.

Reproduces without extensions: Yes

Apologies for the watermark, but you can see the UI remains focused on the first thread after the second thread stops again. I think the UI should refocus on the thread that is most recently stopped.

stacktracefocus

I suspect the issue is in debugService.tryToAutoFocusStackFrame(). I think that if-statement should be true if there is no callstack or the current focused stack frame is in the same thread as the method parameter. So, something like this:

if (!callStack.length || (this.viewModel.focusedStackFrame && this.viewModel.focusedStackFrame.thread.threadId === thread.threadId)) {

Metadata

Metadata

Assignees

Labels

*caused-by-extensionIssue identified to be caused by an extensiondebugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions