Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Add a "pry" command to ruby-debug to use that as a REPL.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 ruby-debug-pry.gemspec
README.md

This gem adds a "pry" command to ruby-debug.

To see it in action, run ruby examples/foo.rb and type "pry" at the debug prompt.

To use it in a project, add this to your Gemfile:

gem "ruby-debug-pry", :require => "ruby-debug/pry"

For more information on pry, read this article.

This has been tested on Ruby 1.8.7 p334 and Ruby 1.9.2 p136 and seems to work.

Future Steps

Right now I don't have any of the additional features that ruby-debug's IRB command has. I don't really use them, but it would be nice to have them.

  • next, step, and cont support
  • add autopry configuration variable
  • make debugger state accessible as a global variable
Something went wrong with that request. Please try again.