KEMBAR78
Support for indicating custom debug focus change · Issue #128 · microsoft/debug-adapter-protocol · GitHub
Skip to content

Support for indicating custom debug focus change #128

@eltonwells

Description

@eltonwells

VS Code's debug focus consists of process, thread, call stack, etc. When the debugger stops, switching to another thread or call stack changes the debug focus and the debugger views refresh by re-requesting scopes, variables, etc from the DA.

Our DA would like to expand on what is considered to be in focus. We can create custom UI for changing our focus via a custom request, but is there a way to indicate this focus change from the DA back to VS Code so that it will refresh the default views in the same way? Can this be done by sending another stopped event, or is there an another event that would be more appropriate? Or would this require something new?

In Visual Studio, the workaround for this was to evaluate a fake expression, VS would re-populate its views as a side effect of the expression evaluation. Sending an event from the DA seems like the best approach, but if there's something that we could call in an extension (eg, in a onDidReceiveDebugSessionCustomEvent handler), that could also be a short-term fix.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions