Open omgreenfield opened 9 years ago
Some pry commands:
binding.pry
to set "breakpoint"disable-pry
to disable all breakpointsls
to look aroundwhereami
to see code above and below. whereami -n X
to specify X lines above and belowcd <object>
to go into a particular objectquit
to continue running code until the next binding.pry
lineNote that your gemfile should have the following if you want to actually use pry-debugger:
gem 'pry'
gem 'pry-debugger'
pry for basic rails console at certain line of code pry-stack_explorer (https://github.com/pry/pry-stack_explorer) for stack... exploring. pry-debugger (https://github.com/nixme/pry-debugger) for breakpoints and stepping pry-remote (https://github.com/Mon-Ouie/pry-remote) for remote debugging