TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pry: A better Ruby REPL

131 pointsby mileszsabout 14 years ago

7 comments

injektabout 14 years ago
Link to GitHub repo: <a href="https://github.com/banister/pry" rel="nofollow">https://github.com/banister/pry</a><p>People should know Pry is relatively new. We're actively writing code daily to improve it. We have some pretty awesome items on the TODO list, so keep an eye on it!<p>To answer an FAQ: There's no reason not to replace IRB with Pry, or at least extend IRB with Pry inside of your ~/.irbrc
peterbabout 14 years ago
The runtime invocation is particularly nice for live debugging. You navigate in and out of program scope (using cd) and view variables in scope (using ls). It is all very smalltalk-ish.
评论 #2479908 未加载
kzarabout 14 years ago
Do any of these IRB alternatives support multi-line history? I want to define a function, press up and have the whole function definition there instead of the last line of it -- how it works with Clojure's REPL.
评论 #2479568 未加载
评论 #2479456 未加载
cldwalkerabout 14 years ago
For something much lighter (1/10th the size of pry) and less opinionated, see <a href="http://github.com/cldwalker/ripl" rel="nofollow">http://github.com/cldwalker/ripl</a>. It's designed to be extendable and thus already has 20+plugins and 5 shells built on top of it.
评论 #2479910 未加载
lobster_johnsonabout 14 years ago
Seems unnecessarily complicated. The whole point of IRB is to always be in Ruby mode. Being able to "drop down" into other out-of-band evaluation modes seems like a useful idea, but that's the exception, not the main use case.<p>So this looks less like a REPL than a gdb-like interactive debugging tool. But unless it can be used for attaching to and inspecting live running processes, it doesn't seem all that useful.
评论 #2479006 未加载
jfbabout 14 years ago
Does it play nicely with an Emacs inferior mode?
评论 #2479873 未加载
评论 #2479876 未加载
qrushabout 14 years ago
Doesn't Rubinius provide a lot of this?