mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.1k stars 179 forks source link

Extend get api of breakpoints to retrieve a bp at specific line #1204

Open asmodeus812 opened 2 months ago

asmodeus812 commented 2 months ago

Problem Statement

There is no way to get a breakpoint at a specific line number at the moment. The breakpoint.get api can be extended to match the other api's for breakpoints to optionally get a line number, similarly to toggle,remove, set etc.

Possible Solutions

No response

Considered Alternatives

At the moment we have to do use get, to get all of them, and then filter on the line number, to get the one we want.