Fast execution control in Pry

Adds step, next, and continue commands to Pry using debugger.

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.

pry-debugger is not yet thread-safe, so only use in single-threaded environments.

Only supports MRI 1.9.2 and 1.9.3. For a pure-ruby approach not reliant on debugger, check out pry-nav. Note: pry-nav and pry-debugger cannot be loaded together.

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 ~/.pryrc:

Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'


Patches and bug reports are welcome. Just send a pull request or file an issue. Project changelog.