Skip to content

Get Number of Breakpoints? #810

Answered by mfussenegger
chrisgrieser asked this question in Q&A
Discussion options

You must be logged in to vote

There is currently no documented way, but you could use require('dap.breakpoints').get() to get all breakpoints grouped by buffer and then count them.

Just keep in mind that the API is considered internal and may change without going through deprecation.
There won't be a public breakpoint API until there's support for all breakpoint features (data breakpoints and function breakpoints are still missing)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chrisgrieser
Comment options

@chrisgrieser
Comment options

Answer selected by chrisgrieser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants