I guess you could call this a patch, though it's more like an extension.
I was thinking it would be helpful to allow remote debugging clients to disconnect, for example if you wanted to
programmatically send commands to rdebug. (For temporarily checking in on long-running processes, or things like TextMate
integration.)
I've put together a proof-of-concept that seems to work reasonably well, but I wouldn't imagine this method would be
how to implement it in the long run. For now, though, you can just run this rdebug_disconnectable instead of the normal
rdebug, and it monkey-patches a couple bits to make disconnecting/reconnecting possible.
I wanted this to be usable without having to manually modify the installed gem, which is part of why it's kinda' funky.
Any thoughts on doing a more realistic implementation of this feature in a future version? |