You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently IRB can't be used without direct access to standard IO. This makes it hard to use with tools like foreman.
If we expect IRB to become a more powerful debugging tool, especially after #575 and similar enhancements, the need to connect to it remotely will only grow.
Hi @st0012@tompng, I'd like to work on this if it's still wanted.
ruby/debug can't help here today (its remote console prints "IRB is not supported on the remote console."), so binding.irb under foreman, bin/dev or a container still has no way in.
A transport: binding.irb waits on a socket when asked to (an option or env var), and irb --attach connects to it.
Three questions before I start:
UNIX socket only for the first version? A TCP listener is unauthenticated code execution, so I'd leave it out or put it behind an explicit opt-in.
Where should line editing live? I'd keep Reline in the client and send whole lines, like rdbg --attach. That means completion and the doc dialog need a round trip, or stay off in v1. Which would you prefer?
Activity
IslamElsayed commentedon Nov 24, 2026
Hi @st0012 @tompng, I'd like to work on this if it's still wanted.
ruby/debug can't help here today (its remote console prints "IRB is not supported on the remote console."), so
binding.irbunder foreman,bin/devor a container still has no way in.Following the plan above, I'd do it as two PRs:
putsto print output #580: send IRB's output through the context's IO instead ofKernel#puts/STDOUT, along the lines of the 2023 comment there (input methods getputs/print). Avoid using arbitrary puts to print output #1025 started this but conflicts with master and hasn't moved since January 2025; I'd build on it and credit @QWYNG, unless they'd rather pick it back up.binding.irbwaits on a socket when asked to (an option or env var), andirb --attachconnects to it.Three questions before I start:
rdbg --attach. That means completion and the doc dialog need a round trip, or stay off in v1. Which would you prefer?(AI-assisted: prepared with Claude, reviewed by me.)