Re: Debugging a Plugin
Re: Debugging a Plugin
- Subject: Re: Debugging a Plugin
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 18 Dec 2008 16:05:26 -0700
On Dec 18, 2008, at 3:56 PM, Bridger Maxwell wrote:
Is it possible to configure Xcode
to launch the application, tell it to use that plugin (some sort of
startup
parameter?), and then debug the plugin's code even though it is the
application running it?
It's possible.
Perhaps there is an article or
something on how to set up Xcode to launch a binary in a non-
standard way?
It's not non-standard, and it's pretty easy. All you do is create a
custom executable in the plugin project pointing it to the program
that will launch the plugin, then load it in the debugger. I do this
to test preference panes, IB plugins, etc. all the time.
Be warned, if your plugin is for QuickTime or iTunes, then you'll run
into some problems with ptrace(). Search Google for details.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden