Re: How to debug BetterAuthorizationSample
Re: How to debug BetterAuthorizationSample
- Subject: Re: How to debug BetterAuthorizationSample
- From: Eric Gorr <email@hidden>
- Date: Fri, 17 Jul 2009 18:14:12 -0400
On Jul 17, 2009, at 4:14 PM, Caleb Strockbine wrote:
On Jul 17, 2009, at 3:11 PM, Eric Gorr wrote:
On Jul 17, 2009, at 3:01 PM, Matthew Mashyna wrote:
I think if you set your target to the tool and set the active
executable to the main application you should be able to hit
breakpoints when you debug. This is how you debug plug-ins and
system preferences.
Thank you for the suggestion. I already tried this, but this does
not work.
I believe the reason is that it is a valid program which Xcode can
launch and does so. Because the program expects command line
arguments, it quickly fails.
You might give it another shot -- what Matthew is suggesting here
should make Xcode launch your main app when you tell it to debug the
helper. As he says, this is how you debug things like plug-ins, and
iirc I've used it for helper programs as well.
Yes, I have done this with plug-ins as well, which is why I tried it
first, but this technique does not seem to apply to helper programs.
If you feel like playing around, try to figure out how to get the
debugger to stop at the first assert in BASHelperToolMain in
BetterAuthorizationSampleLib.c which is a part of the
BetterAuthorizationSample (http://developer.apple.com/samplecode/BetterAuthorizationSample/index.html
)
_______________________________________________
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