Mon-Ouie / pry-remote

Connect to Pry remotely
Other
639 stars 81 forks source link

Using pry-remote to debug CGI scripts? #73

Open philiprhoades opened 7 years ago

philiprhoades commented 7 years ago

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 commented 6 years ago

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?