Skip to content

Commit 04ce47f

Browse files
Add DapClearBreakpoints user command and user command docs
Co-authored-by: Mathias Fussenegger <[email protected]>
1 parent 7e48a80 commit 04ce47f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

doc/dap.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,40 @@ Some example mappings you could configure:
546546
end)
547547
<
548548

549+
==============================================================================
550+
USER COMMANDS *dap-user-commands*
551+
552+
nvim-dap provides the following user commands.
553+
554+
Session management:
555+
556+
- `DapContinue`: Continue executing a paused session or start a new one
557+
- `DapDisconnect`: Disconnect from an active debugging session
558+
- `DapNew`: Start one or more new debug sessions
559+
- `DapTerminate`: Terminate the current session
560+
561+
Stepping:
562+
563+
- `DapRestartFrame`: Restart the active sessions' current frame
564+
- `DapStepInto`: Step into the current expression
565+
- `DapStepOut`: Step out of the current scope
566+
- `DapStepOver`: Step over the current line
567+
568+
REPL:
569+
570+
- `DapEval`: Create a new window & buffer to evaluate expressions
571+
- `DapToggleRepl`: Open or close the REPL
572+
573+
Breakpoints:
574+
575+
- `DapClearBreakpoints` : Clear all breakpoints
576+
- `DapToggleBreakpoint` : Set or remove a breakpoint at the current line
577+
578+
Diagnostics:
579+
580+
- `DapSetLogLevel` : Set the log level
581+
- `DapShowLog` : Show the session log in a split window
582+
549583
==============================================================================
550584
CLIENT CONFIGURATION *dap.defaults*
551585

plugin/dap.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cmd('DapSetLogLevel',
1818
cmd('DapShowLog', 'split | e ' .. vim.fn.stdpath('cache') .. '/dap.log | normal! G', {})
1919
cmd('DapContinue', function() require('dap').continue() end, { nargs = 0 })
2020
cmd('DapToggleBreakpoint', function() require('dap').toggle_breakpoint() end, { nargs = 0 })
21+
cmd('DapClearBreakpoints', function() require('dap').clear_breakpoints() end, { nargs = 0 })
2122
cmd('DapToggleRepl', function() require('dap.repl').toggle() end, { nargs = 0 })
2223
cmd('DapStepOver', function() require('dap').step_over() end, { nargs = 0 })
2324
cmd('DapStepInto', function() require('dap').step_into() end, { nargs = 0 })

0 commit comments

Comments
 (0)