binding.irb and Async::Task #229
Replies: 2 comments
-
See also ruby/debug#486 |
Beta Was this translation helpful? Give feedback.
-
For fun you can do this: alias arb "ruby -rasync -e 'Async{|task| binding.irb; task.stop}'" e.g.
To your specific question, if you start two In order to "stop the world" w.r.t. multiple |
Beta Was this translation helpful? Give feedback.
-
I'm curious how the debugging story when a
binding.irb
call stops execution of not one but several parallel async tasks could be handled in a somewhat user friendly way.Currently you end up streaming IRB input to all the active tasks for a single session which means you have to type each letter twice for example. It might be very non-obvious to some users.
Could we detect that a debug session is active and help users at least notice they're sending input to two different Tasks? Or would it be possible to somehow split the binding.irb sessions tmux style and switch between them?
Very much spitballing here and this might be a concerted convo with @st0012, @k0kubun, or @aycabta maybe since I'm guessing they might have way more experience and ideas for IRB in that domain?
Beta Was this translation helpful? Give feedback.
All reactions