5

I've tried a few Vim debugging tools for Ruby, but they are littered with bugs (as far as i can tell). Anyone know of a really stable debugger for Ruby & Vim?

btelles
  • 5,390
  • 7
  • 46
  • 78

1 Answers1

5

Did you try vim-ruby-debugger? It should work fine on Linux/Mac OS X. I'm a developer of that debugger, so if you have any problems with it - feel free to ask me. :)

Yojik
  • 176
  • 6
  • Awesome :-) I vill certainly let you know if I find anything buggy. – btelles Jan 18 '11 at 15:53
  • 8
    Could you elaborate on how it's supposed to work on non-Rails Ruby scripts? I ran `:Rdebugger %` and nothing happened. I then tried `$ rdebug --client` but it said `Errno::ECONNREFUSED`. – kizzx2 May 28 '12 at 14:03
  • 4
    Same question about using it with non-Rails Ruby scripts. An edit to the answer would be great. – wizonesolutions Jan 10 '13 at 00:17
  • @ssedano Yes, it's [not working](https://github.com/astashov/vim-ruby-debugger/issues/94), and no commits in the last four years. :( – Sparhawk Feb 02 '17 at 02:02
  • 1
    @Sparhawk just noticed - you've answered 02.02 02:02:20 :) – Aleksandr K. May 23 '17 at 09:49
  • FYI for anyone still coming across this: I couldn't find any debugger that still worked with Ruby >=2.0, so wrote a little tool to set/remove Byebug breakpoints: https://github.com/kmewhort/vim-byebug-breakpoints. – Kent Mewhort Sep 01 '17 at 21:55