GUI rails debugger


Somewhat new to rails here. But have used Ruby for years and thus have
ruby-debug before with success. My years of gdb experience were

I like how rails development is easy to do with Vim and command line.
only time I yearn for a GUI tool is when debugging. I do MS MVC dev at
work, and VS is nice for debugging, even if I am not nuts about the rest
it. Anyone know of a nice lite gui debugger I can easily fire up when
needed? I don’t want to have to fire up a beast like netbeans either…


Not sure about GUI, but using pry[1] as a debugger is much nicer than
ruby-debug IMO.

Don’t forget to install pry-nav [2] so that you get ‘next’, ‘stap’(in)
‘continue’ for debug navigation!


Wow, pry looks great. This is likely all I need. Can’t wait to give it
try tonight.


If you search around the web you’ll find lots of good info on how to
use pry.

For debugging, if you have installed pry-nav, just insert:

require ‘pry-nav’

right where you want the debugger to kick in and you’ll be dropped in a
REPL right in the execution context where you called it.

From there you can do whatever you want, from checking values of objects
calling methods and everything else.

Be aware that if you change the value of a variable and continue
it will use the newly set value, which is f**** good for experimenting.

You could also try fresh pry-rescue plugin1.

For debugging, if you have installed pry-nav, just insert:

require ‘pry-nav’

No need to “require” pry-nav. Just install it and use. Basically,
“pry-nav” is a Pry plugin. So it will be required automatically.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs