Re: How to debug BetterAuthorizationSample
Re: How to debug BetterAuthorizationSample
- Subject: Re: How to debug BetterAuthorizationSample
- From: Caleb Strockbine <email@hidden>
- Date: Fri, 17 Jul 2009 16:14:44 -0400
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.
Unfortunately, I am not certain how to passes on the command line
the same information being passed by the application. Regardless, if
I could, I would still prefer to be able to run my application,
which executes this helper tool, and then debug the helper tool.
Is the problem that you're not sure what your main app is passing to
the helper, or that you don't know how to pass in arguments when Xcode
starts your app? In the former case, you could modify your helper to
log the command line arguments when it runs. In the latter case, you
should know that you can set command line arguments for Xcode to pass
in by selecting the executable in the Groups list, and then open the
Info panel. One of the tabs in that panel is Arguments, and you can
set whatever arguments you like there.
Hope that helps...
-Caleb
_______________________________________________
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