Skip to content

debug: be explicit about supporting conditional breakpoints #781

Closed
@polinasok

Description

@polinasok

According to the dap spec:

/**
   * An optional expression for conditional breakpoints.
   * It is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true.
   */
  condition?: string;

Our debug adapter does not set this capability on initialization, but it does appear to support conditional breakpoints (via "Edit Breakpoint"). We should set the capability and add tests for this to solidify the support. This way when the breakpoint is set, it won't have the "!" and an error message on hover, which are misleading because it will actually work.

We would also need to set this correctly in debugAdapter2 as well as it reports capabilities before dlv is launched. This feature has recently been added to dlv-dap (now tracked under #844)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.FrozenDueToAge

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions