Skip to content

BreakpointLocationsRequest without arguments #266

Closed

Description

The spec defines that arguments for a BreakpointLocationsRequest are optional, but gives no hint to what meaning such a request would have.

Is the intent for such a request that an adapter should provide all possible breakpoint locations? That's a rather big ask for many adapters.

If so that intent should be documented. If not, then arguments should be a required field for BreakpointLocationsRequest.

Activity

  1. nickelpro commented on Apr 24, 2022

    @nickelpro
    Author

    Worth mentioning that at least one of the listed SDKs (cppdap) does not seem to consider this argument optional at all, and requires at least a line field to be present.

  2. weinand commented on Nov 24, 2022

    @weinand
    Contributor

    Leaving the arguments property optional was a mistake.

    Since making arguments mandatory would be a breaking change, I suggest that we "fix" the problem by documenting the flaw. E.g. something like: "Clients should not omit the arguments property because the DAP specification intentionally does not cover this case. However, if arguments property is missing, debug adapters should return an error."

  3. added
    bug
    on Nov 24, 2022
  4. added a commit that references this issue on Dec 18, 2025
    295719d
  5. added a commit that references this issue on Dec 18, 2025
    3a9d1c6
  6. added a commit that references this issue on Dec 18, 2025
    0567339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugclarification

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions