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

Using pry-remote to debug CGI scripts? #73

Open
philiprhoades opened this issue Feb 12, 2017 · 1 comment
Open

Using pry-remote to debug CGI scripts? #73

philiprhoades opened this issue Feb 12, 2017 · 1 comment

Comments

@philiprhoades
Copy link

People,

I got pry-remote working on a little test script - thanks for your work!

Now I would like to be able to use pry-remote to debug a CGI script that only starts when it is called from another server (which I don't have control over) and usually quickly exits - is there some way for pry-remote to open an xterm on a particular host's DISPLAY:? with the connection information in it so I can do what I need to do? If not, is there some other way of doing it?

Thanks,
Phil.

@awwaiid
Copy link

awwaiid commented Sep 30, 2017

When binding.remote_pry is hit, the process will pause even in a cgi context and should behave just like it does in your test script. It won't open an xterm, but will listen on a port. I'm not sure which part you're having trouble with -- maybe you want to get notified that it is ready to receive commands?

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