• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Debugging a lanuchd daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging a lanuchd daemon


  • Subject: Debugging a lanuchd daemon
  • From: Steve Sisak <email@hidden>
  • Date: Tue, 30 Oct 2007 10:39:20 -0400

I'm in the process of converting a StartupItem (which I could just run to debug) to a launch-on-demand daemon that will be automatically launched when a Unix-domain socket it registers is accessed.

I'd like to debug the launch code when it's launched by launchctl, but obviously can't attach to the process because it isn't running yet.

Is there a way to get Xcode to debug a process upon launch or other practical techinique to use here?

(I can always put the process in an infinite loop and attach to it)

Also, the daemon will normally be run as root (although I'm pretty sure I can test it in user space for the time being).

How would one debug a priviledged daemon with Xcode? (2-machine debugging?)

Suggestions and best practice welcome.

Thanks,

-Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging a lanuchd daemon
      • From: Dustin Norman <email@hidden>
  • Prev by Date: Re: libPng is not univeral?
  • Next by Date: Re: Debugging a lanuchd daemon
  • Previous by thread: Re: Can I show complete error message in xcode 3?
  • Next by thread: Re: Debugging a lanuchd daemon
  • Index(es):
    • Date
    • Thread