Live data from Hacker News

Interactive shell to a running Python process

github.com

1–10 of 23 posts

Re: Interactive shell to a running Python process

#4
My most excellent friend Thomas Hurst implemented a remote python shell a few years ago, for use in debugging running instances of Terminator. You can see the code in question here:

http://bazaar.launchpad.net/~gnome-terminator/terminator/tru...

and how it gets set up, starting at line 88, here:

http://bazaar.launchpad.net/~gnome-terminator/terminator/tru...

Re: Interactive shell to a running Python process

#10
post #6

Would it be possible to use gdb or something similar to inject this into a running process?

Yes, pyrasite does just that with a python wrapper around the gdb commands.

https://fedorahosted.org/pyrasite/

It was discussed here:

http://news.ycombinator.com/item?id=3014484

Post reply on HN