Daij-Djan
asked on
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?
Can I somehow debug the client with a GUI?
Please post a message in the Community Support area and have this question PAQ'ed and your points refunded.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.