irb icon indicating copy to clipboard operation
irb copied to clipboard

Multithread IRB feature

Open tompng opened this issue 2 years ago • 1 comments

Description

Running IRB in multiple thread won't work now.

Thread.new do
  sleep 2
  binding.irb
end
binding.irb

If it can, debugging multithread program might be easier.

PoC

I made a PoC https://github.com/tompng/irb/tree/thread_irb スクリーンショット 2023-08-21 23 34 26

Problem

  • Is it maintainable?
  • Does debug commands work? Wouldn't this feature slows down improving debug commands?
  • Can it be integrated well with workspace commands?

tompng avatar Aug 21 '23 14:08 tompng

Since debug has better control over threads (th commands), maybe the direction could be to utilise it? irb:rdbg doesn't work with the example atm though.

st0012 avatar Aug 21 '23 14:08 st0012