News for hackers. Stuff that matters.
Re:Pyrasite: Tools for injecting code into running Python pr... by AnkhMorporkian on Monday August 11, 2014 @12:26AM (#8161922)
I've used this a few times to debug running processes that were having small issues that weren't bad enough to restart the system to put in a proper manhole, but bad enough to be affecting users. Worked perfectly to figure out what was going on, and to patch the naughty method.

It's one of those tools that you'll be glad exists when the need arises, but you'll feel a little dirty using it.

Re:Pyrasite: Tools for injecting code into running Python pr... by tenfingers on Monday August 11, 2014 @08:02AM (#8162892)
Why "dirty"? Attaching and inspecting a live process without cooperation is something that should be expected.

pdb is quite limited in what it can debug if you have a stuck process which is very hard to reproduce. I've resorted to gdb + python extensions too many times to count (which basically allows you do what pyrasite does, though at a lower level).