• 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: How to debug BetterAuthorizationSample
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug BetterAuthorizationSample


  • Subject: Re: How to debug BetterAuthorizationSample
  • From: Jim Ingham <email@hidden>
  • Date: Fri, 17 Jul 2009 12:13:25 -0700

The latest Xcode releases (3.1.3 and 3.2) have support for this. Open your project, open the Active Executable Editor, go to the Debugging pane and select "Debug next launch/Push Notification". Then start the debugger, then do whatever causes your program to start up...

If you are still using 3.1.2 you can do this in gdb using the "attach - waitfor" command. One way to do this is to again go the de Debugger pane of the "Active Executable Editor" and turn off "Start Executable after starting debugger" and then start the debugger, and then go to the console and type:

(gdb) attach -waitfor <Program Name>

I talked about this and a bunch of other tricks in the Advanced Debugging and Performance Tools talk at this year's WWDC. I think you can get these at iTunes now.

Jim

On Jul 17, 2009, at 11:17 AM, Eric Gorr wrote:

I've got a helper tool based on this sample project found at:

http://developer.apple.com/samplecode/BetterAuthorizationSample/index.html

It is launched from my main application, but I now have a need to set a breakpoint and debug this tool and I am not certain how to get the Xcode debugger to stop once the tool has been launched.

Can anyone provide some guidance on how this is possible?

Thank you.


_______________________________________________ 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

Jim Ingham Apple Developer Tools



_______________________________________________
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: How to debug BetterAuthorizationSample
      • From: Eric Gorr <email@hidden>
References: 
 >How to debug BetterAuthorizationSample (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: How to debug BetterAuthorizationSample
  • Next by Date: Re: How to debug BetterAuthorizationSample
  • Previous by thread: Re: How to debug BetterAuthorizationSample
  • Next by thread: Re: How to debug BetterAuthorizationSample
  • Index(es):
    • Date
    • Thread