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).
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.