Fast execution control in Pry
To use, invoke pry normally:
def some_method binding.pry # Execution will stop here. puts 'Hello World' # Run 'step' or 'next' in the console to move here. end
pry-debugger is not yet thread-safe, so only use in single-threaded environments.
Support for pry-remote (>= 0.1.4) is also included. Requires explicity requiring pry-nav, not just relying on pry's plugin loader. For example, in a Gemfile:
gem 'pry' gem 'pry-nav'
Stepping through code often? Add the following shortcuts to
.commands.alias_command 'c', 'continue' .commands.alias_command 's', 'step' .commands.alias_command 'n', 'next'