Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nvim-dap+nvim-dap-uifor interactive debuggingrdbglaunch and TCP attach (for remote sessions via Vagrant+Docker — see Debugging Rails in Vagrant+Docker: connect neovim on host to running container #4)exrcso per-project.nvim.luafiles can provide their own launch configurationsKeymaps added (
<leader>d*)<leader>db<leader>dc<leader>dn<leader>di<leader>do<leader>dq<leader>du<leader>drTest plan
<leader>dbsets a breakpoint sign in the gutterrdbg --open --port 12345 -- ruby script.rb, then<leader>dc→ attach config → dap-ui opensCloses #5
🤖 Generated with Claude Code