Solved

Debug 'fork' with Xcode and continue in child

Posted on 2004-10-20
4
883 Views
Last Modified: 2013-12-26
I have a unix source which forks right at the start. Xcode continues in parent then... and therefore exits.
Can I somehow debug the client with a GUI?
0
Comment
Question by:Daij-Djan
4 Comments
 
LVL 5

Author Comment

by:Daij-Djan
ID: 12356994
Found it! sorry
If you want to follow the child process instead of the parent process, use the command set follow-fork-mode.


set follow-fork-mode mode
Set the debugger response to a program call of fork or vfork. A call to fork or vfork creates a new process. The mode can be:

parent
The original process is debugged after a fork. The child process runs unimpeded. This is the default.
child
The new process is debugged after a fork. The parent process runs unimpeded.
ask
The debugger will ask for one of the above choices.

show follow-fork-mode
Display the current debugger response to a fork or vfork call.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 12553289
Please post a message in the Community Support area and have this question PAQ'ed and your points refunded.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12808085
PAQed with points refunded (250)

modulo
Community Support Moderator
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 63
while loop over for loop 7 105
abstract class with all non abstract mentods 6 76
NotAlone Challenge 20 84
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question