An extension for nvim-dap providing configurations for launching debug.rb. Fork of suketa/nvim-dap-ruby with only one "debug current file" action available.
Lazy.nvim:
{
"mfussenegger/nvim-dap",
dependencies = {
"9th8/nvim-dap-ruby"
},
config = function()
require("dap-ruby").setup()
end
}Vim-plug:
Plug 'mfussenegger/nvim-dap'
Plug '9th8/nvim-dap-ruby'
If you're not using Lazy.nvim, you'll need to call the setup function to register and setup the adapter:
lua require('dap-ruby').setup()Call :lua require('dap').continue() to start debugging.
- Start debugger with current opened file.
- RSpec
- Start debugger with current opened spec file (
bundle exec rspec /path/to/file_spec.rb) - Start debugger with
bundle exec rspec ./spec
- Start debugger with current opened spec file (
- Rails integration
- Rake test
- Connect running rdbg
Thanks to nvim-dap-go for the inspiration.