Ruby Debugger

Could anybody recommend me a good Ruby Debugger. Preferably one that
works in vim. I really like gdbtui for C programming, it saves me hours
of time, otherwise debugging using printf statements takes up so much
time. Could somebody recommend one that works right out of vim?

Thanks.

(requires some additional patches, see README, never got -ide working
with recent ruby, may require unix like environment due to
vim-addon-async - since recently there is a rb script which might work
on windows, too)

github.com/MarcWeber/mwr/vim-addon-rdebug
(only requires require “debug”)

There may be more options, such as vdebug etc (I never used them)

Pay attention to the README files. Implementation may be incomplete.
In both cases you can pass commands to the debugger by the DEBUG buffer
(-> see vim-addon-async docs)

Marc W.

← That would be the correct hyperlink.
Looks so complicated… :frowning:

Excerpts from Alphonse 23’s message of Sat Jul 20 22:53:41 +0000 2013:

GitHub - MarcWeber/vim-addon-ruby-debug-ide: minimal ruby-debug-ide implementation for Vim based on vim-addon-async supporting breakpoints, stepping, ..
← That would be the correct hyperlink.
Looks so complicated… :frowning:
Well - you can pay me to simplify it :slight_smile:

I recommend pry. It won’t open in vim that I know of but it beats the
hell
out of debugging with puts.

I would, if I had money. :slight_smile:

I’ve used pry before, but it’s only a little bit better than using puts.
A debugger similar to gdb would kick a lot of ass.

Excerpts from Alphonse 23’s message of Sun Jul 21 06:15:54 +0000 2013:

I’ve used pry before, but it’s only a little bit better than using puts.
A debugger similar to gdb would kick a lot of ass.
Would … doesn’t help you. Aks which debuggers work on your platform,
and use that tool for “debugging only”. You can still code using Vim.

On linux my plugins should work. Maybe the ide JSON bridge has to be
updated. Didn’t look at it for month

Marc W.