-
Notifications
You must be signed in to change notification settings - Fork 81
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
Continue execution with pry-remote #7
Comments
Could you provide an example script to reproduce? I don't have this issue with this (trivial) sample script: require 'pry-remote'
class Foo
def initialize(x, y)
binding.remote_pry "0.0.0.0"
puts 3
end
end
Foo.new 10, 20 |
Doing exit works for me. What doesn't work is doing cd .. to continue to the next, which works with normal binding.pry and saves you having to exit and come back in.... |
Right, I see what you mean. It "just works" in Pry because it runs in the same process. In this case, you don't know whether or not the process is still running after each step. I guess one way to implement that would be having the pry'd program send some message to the client upon exit (e.g. using an at_exit hook). |
My concern is in the other direction. I've got two processes: pry-remote in a console, and my rails app under pow. I put a "binding.remote_pry" in the rails app, and start a request with a browser. Is there a way to continue execution of the pry'd process? |
I haven't been able to find a way to gracefully disconnect the pry-remote client from the server without an exception being raised. My workaround is to set the breakpoints as follows: require 'pry-remote'; binding.remote_pry rescue DRb::DRbConnError When I quit pry, the application continues running without the exception unwinding the stack. |
As mentionned before, leaving the above script with both johanadamson: Btw, |
mon-ouie: Yes, you are right, my mistake. |
In Rails (3.1.1) running on Pow, when I pause execution with binding.remote_pry and then remote in with pry-remote, execution does not continue after I
exit
the pry session. If I pry-remote back in, I'm at the same place. How to continue program execution in this scenario?The text was updated successfully, but these errors were encountered: