Solved

Debug 'fork' with Xcode and continue in child

Posted on 2004-10-20
4
923 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

622 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