pry - attach an irb-like session to any object at runtime - 0.6.0released

J

John Mair

pry is an irb-alternative that enables you to open a session on any
object at any point in the running program. It can also be run from the
command line.

Some uses of Pry are in debugging, exploring a codebase, even reading
documentation (using the show-doc and show-method commands (ruby 1.9
only)).

Pry supports a bunch of commands that make it easy to navigate around a
code-base, such as: cd, cat, show-method, and in particular the `ls`
command (see https://gist.github.com/835694)

Pry can also be easily configured to implement custom shells; and it can
be set to read from any object that implements a `readline` method and
output to any object that implements `puts`: (e.g Pry.input =
StringIO.new("puts 'self'\exit"), Pry.output = my_output)

For more information, try the gem: `gem install pry`
And check out the following documentation:

http://banisterfiend.wordpress.com/2011/01/27/turning-irb-on-its-head-with-pry/

http://rdoc.info/github/banister/pry/master/file/README.markdown
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top