Get Number of Breakpoints? #810
-
Is it possible to get the number of set breakpoints, e.g. for the statusline or for other plugins to know? In the docs, I only found |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is currently no documented way, but you could use Just keep in mind that the API is considered internal and may change without going through deprecation. |
Beta Was this translation helpful? Give feedback.
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)