4 ms·
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, bu
by AnkhMorporkian 12y ago
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.
- tenfingers 12y agoWhy "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).