• 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: need way to debug tool called by popen--at startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: need way to debug tool called by popen--at startup
      • From: Alastair Houghton <email@hidden>
References: 
 >need way to debug tool called by popen--at startup (From: Dennis Christopher <email@hidden>)

  • Prev by Date: Re: Re-"Targeting" to build a bundle
  • Next by Date: Re: need way to debug tool called by popen--at startup
  • Previous by thread: need way to debug tool called by popen--at startup
  • Next by thread: Re: need way to debug tool called by popen--at startup
  • Index(es):
    • Date
    • Thread