Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!h.cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!kannan@babcock.cerc.wvu.wvnet.edu From: kannan@babcock.cerc.wvu.wvnet.edu (R. Kannan) Newsgroups: comp.unix.wizards Subject: Re: Debugging Child Processes. Message-ID: <202@cerc.wvu.wvnet.edu.edu> Date: 25 Aug 89 15:13:45 GMT References: <6840004@hpcllcm.HP.COM> Sender: news@cerc.wvu.wvnet.edu Lines: 31 From article <6840004@hpcllcm.HP.COM>, by pratap@hpcllcm.HP.COM (Pratap Subrahmanyam): > main() > { > .... > if((pid = fork()) == 0) { > > /* How can you step into this area ???? */ > > } > } > > Any pointers will be appreciated. > > -- pratap Standard dbx(or any of its variations dbxtool etc) there are commands like attach, debug etc. What one woulf have to do is to get the pid of the child process and then attach to it. The great dbx will then step one through the child process. We have found this otbe very useful. If the child process quits too soon, then put a sleep in child and then see what happens in it. Hope this helps. --kannan