Re: Debugging a lanuchd daemon
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