2

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

1 Answer 1

9

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

lua require'dap'.clear_breakpoints()

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.