5 ms·
A lot of that stuff comes with the dynamite combination of pry and its various plugins: pry-debugger (gives you next, step etc), pry-stack_explorer (go up and d
by JonnieCache 13y ago
A lot of that stuff comes with the dynamite combination of pry and its various plugins: pry-debugger (gives you next, step etc), pry-stack_explorer (go up and down the call stack) and so on.
I implore you to check them out if you are a ruby developer. I can't remember how I got work done without them.
http://pryrepl.org/ http://pryrepl.org/
https://github.com/pry/pry/wiki https://github.com/pry/pry/wiki
PS. to make your life even easier, hook it up to awesome_print. Heaven.
- dopamean 13y agoI just recently started using pry and it has already made a big difference. Couldn't recommend it more.
- projct 13y agoSee also https://github.com/nixme/jazz_hands https://github.com/nixme/jazz_hands for a collection of these in one. :)
- rubyn00bie 13y agoGlad to see someone mentioned these! Making your own irb console is dead easy: myfile.rb require 'pry' class Stuff def initialize binding.pry end end Stuff.new # diy console Also, awesome_print is a lifesaver as well... One tip I do have is: be careful when "prying" you don't want to accidentally ship a "binding.pry" into production (*I did it to our staging server once-- both hilarious and stupid)