Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add DapClearBreakpoints and a doc.txt section on user commands #1381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions doc/dap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,28 @@ Some example mappings you could configure:
end)
<

==============================================================================
USER COMMANDS *dap-user-commands*


nvim-dap provides the following commands to the user:

- `DapSetLogLevel` : Set the log level,
- `DapShowLog` : Show the session log in a split window,
- `DapContinue` : Continue executing a paused session or start a new one,
- `DapToggleBreakpoint` : Set or remove a breakpoint at the current line,
- `DapClearBreakpoints` : Clear all set breakpoints,
- `DapToggleRepl` : Open or close a REPL,
- `DapStepOver` : Step over the current line,
- `DapStepInto` : Step into the current expression,
- `DapStepOut` : Step out of the current scope,
- `DapTerminate` : Close the current sesion,
- `DapDisconnect` : Disconnect from an active debugging session,
- `DapLoadLaunchJSON` : Extend `dap.configurations` with entries read from `.vscode/launch.json`,
- `DapRestartFrame` : Restart the active sessions' current frame,
- `DapNew` : Start one or more new debug sessions,
- `DapEval` : Create a new window & buffer to evaluate expressions.

==============================================================================
CLIENT CONFIGURATION *dap.defaults*

Expand Down
1 change: 1 addition & 0 deletions plugin/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cmd('DapSetLogLevel',
cmd('DapShowLog', 'split | e ' .. vim.fn.stdpath('cache') .. '/dap.log | normal! G', {})
cmd('DapContinue', function() require('dap').continue() end, { nargs = 0 })
cmd('DapToggleBreakpoint', function() require('dap').toggle_breakpoint() end, { nargs = 0 })
cmd('DapClearBreakpoints', function() require('dap').clear_breakpoints() end, { nargs = 0 })
cmd('DapToggleRepl', function() require('dap.repl').toggle() end, { nargs = 0 })
cmd('DapStepOver', function() require('dap').step_over() end, { nargs = 0 })
cmd('DapStepInto', function() require('dap').step_into() end, { nargs = 0 })
Expand Down