Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Debugging a CGI with XCode, is it possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging a CGI with XCode, is it possible?



Eyal - on Mac OS X you can use the sleep or usleep functions to pause
execution for an arbitrary length of time.

Apple's documentation on debugging Dashboard plugins has a section about
"debugging a crash at startup":

http://developer.apple.com/technotes/tn2005/tn2139.html

Good luck!

Daniel

> Thanks for the answer, Daniel.
> Do you have any suggestions as to how to do this wait in C?
>
> Eyal
>
>
>
>
>
> On Jan 27, 2006, at 20:46, Daniel Jalkut wrote:
>> Eyal - assuming I undestand your problem, you have to do something
>> to cause a delay so you have an opportunity to "attach" with gdb.
>> Once you're attached, it's much like debugging any application.
>> Just make sure the CGI that gets launched is built with debugging
>> symbols, and has an artificial delay at the beginning so you have a
>> chance to "grab it" before it starts doing good stuff.
>>
>> Daniel
>>
>> On Jan 27, 2006, at 8:45 AM, Eyal Redler wrote:
>>
>>> Hi All,
>>>
>>> Is it possible to debug a CGI using XCode?
>>> My debugging experience is limited to applications and such, how
>>> do I make a process which is launched by a third application stop
>>> at a breakpoint?
>>>
>>> Thanks
>>>
>>> Eyal
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Xcode-users mailing list      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>> sweater.com
>>>
>>> This email sent to email@hidden
>>
>
>
>  _______________________________________________
> 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
>


 _______________________________________________
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 CGI with XCode, is it possible? (From: Eyal Redler <email@hidden>)
 >Re: Debugging a CGI with XCode, is it possible? (From: Daniel Jalkut <email@hidden>)
 >Re: Debugging a CGI with XCode, is it possible? (From: Eyal Redler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.