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

Remote capabilities #237

Closed
brainopia opened this issue Sep 2, 2011 · 10 comments

Comments

@brainopia
Copy link

commented Sep 2, 2011

It would be greatly useful in some situations to run pry in remote mode, eg, binding.remote_pry and then to connect to it with pry -c (by analogue to rdebug -c).

@banister

This comment has been minimized.

Copy link
Member

commented Sep 2, 2011

this is coming in the nearish future

@brainopia

This comment has been minimized.

Copy link
Author

commented Sep 2, 2011

Great news, thanks in advance.
You rock my world :)

@Mon-Ouie

This comment has been minimized.

Copy link
Member

commented Sep 2, 2011

https://gist.github.com/1189459

The client process doesn't exit, and readline history isn't set, but that's better than nothing.

@banister

This comment has been minimized.

Copy link
Member

commented Sep 5, 2011

@brainopia

can you confirm Mon-Ouie's temporary solution works for you? if so we can put it in the wiki :))

@brainopia

This comment has been minimized.

Copy link
Author

commented Sep 5, 2011

May be I do something wrong but I get
ruby-1.8.7-p352/lib/ruby/1.8/drb/drb.rb:743:in '+': can't convert nil into String (TypeError)
or the same error for 1.9
ruby-1.9.3-preview1/lib/ruby/1.9.1/drb/drb.rb:743:in '+': can't convert nil into String
when I try to run client (server is running fine).

I can try to understand what goes wrong later.

@ghost

This comment has been minimized.

Copy link

commented Sep 5, 2011

@brainopia provide the URI as the first argument to the client.

@banister

This comment has been minimized.

Copy link
Member

commented Sep 5, 2011

@brainopia, like this: ruby pry_client druby://localhost:5000

@brainopia

This comment has been minimized.

Copy link
Author

commented Sep 5, 2011

My bad, I've missed it. Yeah, with giving it an explicit URI it works on 1.9. But not on 1.8 since there is no define_singleton_method, so we need to use class << proxy to define readline method in consistent manner across different rubies.

@carlesso

This comment has been minimized.

Copy link

commented Sep 28, 2011

The solution for this issue will allow using binding.pry when using ddollar/foreman (for example)? Actually if used it will hang foreman process without allowing user input.

If it's not related (and I didn't understand this issue, which is highly possible) let me know so I can open a new issue!

@banister

This comment has been minimized.

Copy link
Member

commented Sep 28, 2011

@carlesso, check out https://github.com/mon-ouie/pry-remote

@brainopia, you may be interested in that too, it's the official remote capability implemention for pry, just as yet unannounced :)

@banister banister closed this Dec 1, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.