Debug 'fork' with Xcode and continue in child

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?
LVL 5
Daij-DjanAsked:
Who is Participating?
 
moduloConnect With a Mentor Commented:
PAQed with points refunded (250)

modulo
Community Support Moderator
0
 
Daij-DjanAuthor Commented:
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
 
Karl Heinz KremerCommented:
Please post a message in the Community Support area and have this question PAQ'ed and your points refunded.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.