0

How can I clear all current breakpoints at ones in nvim-dap?


UPD: I wrote this little function to achieve that:

function! ClearBreakpoints() 
    exec "lua require'dap'.list_breakpoints()"
    for item in getqflist()
        exec "exe " . item.lnum . "|lua require'dap'.toggle_breakpoint()"
    endfor
endfunction
romainl
  • 186,200
  • 21
  • 280
  • 313
Oleg Khalidov
  • 5,108
  • 1
  • 28
  • 29

1 Answers1

2

Looks like this was added literally the next day from when you asked.

lua require'dap'.clear_breakpoints()

distek
  • 21
  • 2