Skip to content

Add condition editing UI to breakpoint filters #111227

@weinand

Description

@weinand

With microsoft/debug-adapter-protocol#137 "condition" support has arrived in the Debug Adapter Protocol.

This feature requests asks for adding condition editing UI for breakpoint filters.

Implementation sketch:

  • if DA has capability supportsExceptionFilterOptions it will use the new protocol
  • the exceptionBreakpointFilters capability can now return a supportsCondition property which indicates that VS Code should enable a "condition" edit UI for the exception filter.
  • when calling the setExceptionBreakpoints request the set of exceptions must be passed via the filterOptions property instead of the filters property. The filterOptions property takes an array of pairs consisting of the breakpoint filter ID and an optional condition. If none of the exception filters has a condition, the filters property can be used.

Proposal for condition editing UI:

The simplest "condition" edit UI would be to provide a context menu action that opens an editable text box on top the exception filters name (identical to the function breakpoints, see green arrow below). If an exception filter has a condition, it could be rendered at the end of the exception's name in a dimmed style (similar to the path style that we use for regular breakpoints; see red arrow):

2020-11-24_12-34-55

/cc @connor4312

Metadata

Metadata

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release noteson-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions