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 <> [email protected] <> http://www.madboa.com/
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to