A runtime developer console and IRB alternative for Ruby
open sourceMITfree
Pry is a runtime developer console for Ruby and an alternative to IRB, with strong introspection. You navigate around objects with cd and ls, browse source and documentation (core C source too, with the pry-doc gem), open methods in your editor, run shell commands, and replay history, all with syntax highlighting and a live help system. Calling binding.pry anywhere in a program drops into a session at that point, so it's also used as a debugger, and it can replace the Rails console. A flexible command system and many plugins extend it. It supports CRuby 2.0 and later and JRuby 9.0 and later.
Problems it solves
- a better Ruby console than IRB with syntax highlighting and introspection
- pause my Ruby program at a line and poke around its state
- browse a Ruby method's source and docs from the console
- use a nicer console for my Rails app
Features
- navigate state with cd and ls
- source and documentation browsing
- open methods in an editor
- binding.pry runtime invocation
- shell command integration
- command system and plugins
- history replay
- syntax highlighting
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
