Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithread IRB feature #690

Open
tompng opened this issue Aug 21, 2023 · 1 comment
Open

Multithread IRB feature #690

tompng opened this issue Aug 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@tompng
Copy link
Member

tompng commented Aug 21, 2023

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 tompng added the enhancement New feature or request label Aug 21, 2023
@st0012
Copy link
Member

st0012 commented Aug 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants