Re: need way to debug tool called by popen--at startup
Re: need way to debug tool called by popen--at startup
- Subject: Re: need way to debug tool called by popen--at startup
- From: Jonas Maebe <email@hidden>
- Date: Thu, 30 Apr 2009 19:08:19 +0200
On 30 Apr 2009, at 18:35, Dennis Christopher wrote:
The problem I have is I want to debug an exception that occurs near
to the startup of the tool, and by the time I go through the Attach
step back in XCode the tool
is already past that point. Perhaps there is a way with gdb to do
this...? any suggestions would be
appreciated.
gdb -waitfor <processname>
(note that this works via some polling method)
Alternatively, you can add a sleep(10) or however long you need at the
beginning of the command line tool, so that you do get enough time to
attach gdb manually.
Jonas
_______________________________________________
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