Hijack: Connect to an existing process with irb


My new project ‘Hijack’ is pretty much useable now. It lets you connect
an already running ruby process and interact with it using irb as if it
a normal irb session.

I’m sure the benefits of this are pretty obvious :slight_smile:

Github page: http://github.com/ileitch/hijack

Hope someone finds it useful!


Great. Could you tell me what’s the difference from live-console?

Great. Could you tell me what’s the difference from live-console?

They appear to scratch the same itch :slight_smile:

Here’s a way to do it through EM, too


I’ve just changed Hijack so that you can hijack any Ruby process - no
for your target process to require any code before it can be hijacked.
does this by first injecting a payload using gdb, then it signals the
process to start up a DRb server which the hijack client then connects

This should make it a lot more useful as most people probably wouldn’t
about using something like LiveConsole until a problem is known… at
point you have to enable LiveConsole in your app, restart it and then
for the problem to arise again.

The code is very new and fragile but it’d be great to get some feedback!

2009/7/11 Roger P. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs