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

Why no pry in remote mode? #299

Closed
jeffutter opened this issue Nov 11, 2016 · 1 comment
Closed

Why no pry in remote mode? #299

jeffutter opened this issue Nov 11, 2016 · 1 comment

Comments

@jeffutter
Copy link

Problem description

Pry doesn't work in remote mode

Expected behavior

pry to work in remote mode

Actual behavior

*** Command is available only in local mode.

Steps to reproduce the problem

Connect to a remote session and type pry

Notes

I am looking for a solution do 'remote' debug ruby apps running in a docker-compose setup. Regular pry/pry-byebug won't work since there are a few separate applications and docker has trouble dealing with the stdin/stdout. I tried pry-remote but it just immediately quits when I try to connect, with no error.

A remote byebug session seems to work great, but I miss the niceties I am used to with pry. I was wondering if anyone can provide some context around why pry won't work in remote mode. Would this be possible to implement? Given some direction as to where to start, I could take a crack at it.

@deivid-rodriguez
Copy link
Owner

Hi!

So I had a look at this. The problem is that when you launch a separate REPL from within byebug's prompt, that REPL takes control of user input, so it won't send it to the remote server as byebug does in remote mode.

I think the best way to support this would be to make pry-byebug compatible with pry-remote, so I'll close this issue and keep track of progress in deivid-rodriguez/pry-byebug#33.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants