3 ms·
Glad 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
by rubyn00bie 13y ago
Glad 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)