[PLUG] debug running process
Paul Heinlein
heinlein at madboa.com
Thu Sep 2 16:56:00 UTC 2010
On Thu, 2 Sep 2010, Daniel B. Herrington wrote:
> All,
>
> Does anyone have good ways to debug running processes without
> restarting them?
>
> I've used truss before, but I've always restarted the process for
> it. Any recommendations would be appreciated.
You needn't restart a process to use strace/truss. Just point it at an
existing PID:
strace -p $PID
It's more difficult, of course, if the parent process starts up
multiple long-lived forks or threads, but a single-threaded process
won't pose any difficulty.
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
More information about the PLUG
mailing list