How can I perform interactive debugging?
Summary
I'd like to drop a binding.pry
in a model, so I can interactively debug things at that point in time.
Currently, when I do this, it doesn't drop me into an IRB session since the ./run
command is trying to process all of what's currently happening in all the services (shell, workhorse, web, db, redis, etc.). Instead, the process stalls, because it's waiting for the pry session to end. At this point, I can debug interactively (although, I can't see what I'm typing). Eventually the process times out due to unicorn's 60 second limit (I think that's the limiter), and I'm left sad and wishing I figured out my problem in less than 60 seconds (no pressure, ha!).
Anyway, if anyone has some tips on interactive debugging here, I'd love to hear from you!