Forum: Ruby Ruby Debugger

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ecd39d9529cecb673ef137e306cf4a5a?d=identicon&s=25 Alphonse 23 (alphonse23)
on 2013-07-20 23:44
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.
22851c6ed4b4112a7a4a2463af6c805d?d=identicon&s=25 Marc Weber (Guest)
on 2013-07-21 00:14
(Received via mailing list)
github.com/MarcWeber/vim-addon-ruby-debug-ide
(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 Weber
Ecd39d9529cecb673ef137e306cf4a5a?d=identicon&s=25 Alphonse 23 (alphonse23)
on 2013-07-21 00:53
https://github.com/MarcWeber/vim-addon-ruby-debug-ide
<- That would be the correct hyperlink.
Looks so complicated.. :(
22851c6ed4b4112a7a4a2463af6c805d?d=identicon&s=25 Marc Weber (Guest)
on 2013-07-21 01:03
(Received via mailing list)
Excerpts from Alphonse 23's message of Sat Jul 20 22:53:41 +0000 2013:
> https://github.com/MarcWeber/vim-addon-ruby-debug-ide
> <- That would be the correct hyperlink.
> Looks so complicated.. :(
Well - you can pay me to simplify it :)
Ecd39d9529cecb673ef137e306cf4a5a?d=identicon&s=25 Alphonse 23 (alphonse23)
on 2013-07-21 03:47
I would, if I had money. :)
7353db17cf19f920fbd24479c8157781?d=identicon&s=25 Jonan S. (jonan_s)
on 2013-07-21 04:42
(Received via mailing list)
I recommend pry. It won't open in vim that I know of but it beats the
hell
out of debugging with puts.
Ecd39d9529cecb673ef137e306cf4a5a?d=identicon&s=25 Alphonse 23 (alphonse23)
on 2013-07-21 08:15
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.
22851c6ed4b4112a7a4a2463af6c805d?d=identicon&s=25 Marc Weber (Guest)
on 2013-07-21 13:52
(Received via mailing list)
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 Weber
This topic is locked and can not be replied to.