Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 546 Bytes

pry.md

File metadata and controls

18 lines (13 loc) · 546 Bytes

Install the gems

gem install pry pry-debugger awesome_print

Use pry

  • as irb: pry
  • as a debugger: require 'pry'; binding.pry in your code (or just type pry!<space> to make vim do it)

Pry Customizations:

  • clear command to clear screen
  • c (continue) n (next) s (step) commands for debugging using pry-debugger
  • all objects displayed in readable format (colorized, sorted hash keys) - via awesome_print
  • a few color modifications to make it more useable
  • type help to see all the commands