/nvim-dap-ruby

Primary LanguageLuaMIT LicenseMIT

nvim-dap-ruby

An extension for nvim-dap providing configurations for launching debug.rb.

Pre-reqs

Installation

Plug 'mfussenegger/nvim-dap'
Plug 'suketa/nvim-dap-ruby'

Usage

Register the plugin

Call the setup function in your init.vim to register the ruby adapter and the configurations to debug ruby:

lua require('dap-ruby').setup()

Use nvim-dap as usual

Call :lua require('dap').continue() to start debugging.

Features

  • 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

Not Supported Yet

  • rake test
  • rails
  • connect running rdbg

Acknowledgement

Thanks to nvim-dap-go for the inspiration.