Skip to content

Commit

Permalink
Add DapPause user command
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlfs committed Feb 23, 2025
1 parent 52302f0 commit 402662e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/dap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ Stepping:
- `DapStepInto`: Step into the current expression
- `DapStepOut`: Step out of the current scope
- `DapStepOver`: Step over the current line
- `DapPause`: Pause the current thread or pick a thread to pause

REPL:

Expand Down
1 change: 1 addition & 0 deletions plugin/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 })
cmd('DapStepOut', function() require('dap').step_out() end, { nargs = 0 })
cmd('DapPause', function () require('dap').pause() end, { nargs = 0 })
cmd('DapTerminate', function() require('dap').terminate() end, { nargs = 0 })
cmd('DapDisconnect', function() require('dap').disconnect({ terminateDebuggee = false }) end, { nargs = 0 })
cmd('DapRestartFrame', function() require('dap').restart_frame() end, { nargs = 0 })
Expand Down

0 comments on commit 402662e

Please # to comment.