head.daveops.net

Snippets for yer computer needs

Debugging

-r debug

ruby -r debug example.rb

Irb

As of Ruby 2.4+, you can use binding.irb for an experience similar to Pry

Pry

http://pryrepl.org/

require 'pry'

# start REPL
binding.pry
# get list of commands
repl> help

# quit program
repl> !!!