671 B
671 B
Install the gem
gem install pry
gem install pry-nav
gem install awesome_print
Use pry
- as irb:
pry - as rails console:
script/console --irb=pry - as a debugger:
require 'pry'; binding.pryin your code (or just typepry!<space>to make vim do it)
Pry Customizations:
clearcommand to clear screensqlcommand to execute something (within a rails console)c(continue)n(next)s(step) commands for debugging using pry-nav- all objects displayed in readable format (colorized, sorted hash keys) - via awesome_print
- a few color modifications to make it more useable
- type
helpto see all the commands