Skip to content

Add nvim-dap with ruby/debug adapter#6

Open
body-clock wants to merge 6 commits intomainfrom
issue-5-dap
Open

Add nvim-dap with ruby/debug adapter#6
body-clock wants to merge 6 commits intomainfrom
issue-5-dap

Conversation

@body-clock
Copy link
Copy Markdown
Owner

Summary

Keymaps added (<leader>d*)

Key Action
<leader>db Toggle breakpoint
<leader>dc Continue / start session
<leader>dn Step over
<leader>di Step into
<leader>do Step out
<leader>dq Terminate session
<leader>du Toggle dap-ui
<leader>dr Toggle REPL

Test plan

  • <leader>db sets a breakpoint sign in the gutter
  • Local attach: start a script with rdbg --open --port 12345 -- ruby script.rb, then <leader>dc → attach config → dap-ui opens
  • Stepping and variable inspection work in dap-ui
  • Session close cleans up dap-ui

Closes #5

🤖 Generated with Claude Code

Installs nvim-dap + nvim-dap-ui for interactive debugging. Configures
a Ruby adapter that handles both local rdbg launch and TCP attach for
remote sessions (e.g. Vagrant+Docker). Adds <leader>d* keymaps for
breakpoints, stepping, and UI. Enables exrc so per-project .nvim.lua
files can override DAP launch configs.

Closes #5
Add --nonstop to rdbg launch so execution runs freely until binding.b
rather than pausing at the first line. Add <leader>ds/<leader>dl to
run the current spec file or line directly under the debugger without
going through the picker. Simplify configurations to a single Attach
entry; spec runs use dap.run() directly from keymaps.
Without --nonstop rdbg pauses before executing anything, waits for DAP
to register breakpoints, then continues on <leader>dc. This eliminates
the race where tests complete before breakpoints are set.

Remove auto-close listeners so dapui stays open after the session ends
and the last state remains inspectable. Close manually with <leader>du.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add interactive debugging support: nvim-dap + ruby/debug

1 participant