• 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
Re: Debugging a lanuchd daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging a lanuchd daemon


  • Subject: Re: Debugging a lanuchd daemon
  • From: Steve Sisak <email@hidden>
  • Date: Tue, 30 Oct 2007 16:51:02 -0400

At 4:14 PM -0400 10/30/07, Dustin Norman wrote:
Yeah, I wasn't sure if that was new for Leopard or not. At any rate, I found a workaround for my problem that should help you too. If you put a call to pause() at the beginning of your program, it will wait for a signal.

Thanks, that did the trick (and a little more elegant than the old solution I remembered after hitting "send"):


volatile int debug_hack = 1;

while (debug_hack)
{
   sleep(1);
}

This is still semi-useful in other contexts, however (attach and set debug_hack to zero in the debugger).

Cheers,

-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


References: 
 >Debugging a lanuchd daemon (From: Steve Sisak <email@hidden>)
 >Re: Debugging a lanuchd daemon (From: Dustin Norman <email@hidden>)
 >Re: Debugging a lanuchd daemon (From: Steve Sisak <email@hidden>)
 >Re: Debugging a lanuchd daemon (From: Dustin Norman <email@hidden>)

  • Prev by Date: Re: Where is main?
  • Next by Date: Re: Debugging a lanuchd daemon
  • Previous by thread: Re: Debugging a lanuchd daemon
  • Next by thread: Re: Debugging a lanuchd daemon
  • Index(es):
    • Date
    • Thread