KEMBAR78
Proposal: allow conditional exception breakpoints · Issue #137 · microsoft/debug-adapter-protocol · GitHub
Skip to content

Proposal: allow conditional exception breakpoints #137

@connor4312

Description

@connor4312

Refs: microsoft/vscode#104453 which requests the ability to set exception breakpoints which are caught conditionally.

I think the implementation can be straightforward from a DAP perspective, with the addition of a new switch in the ExceptionBreakpointsFilter

export interface ExceptionBreakpointsFilter {
  /**
   * Whether the user can set a condition for this exception.
   */
  supportsCondition?: boolean;

I think the logical place would be in the exceptionOptions, however it doesn't look like VS Code uses this property and it hasn't been referenced or updated in this repo was initially pushed to Github. Would this be a reason to start using it?

export interface ExceptionOptions {
  /**
   * An optional expression for conditional breakpoints. It may only be
   * present 'supportsCondition' was given in the breakpoint filter.
   */
  condition?: string;

cc @isidorn

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions