• 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: Debugging a Plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Debugging a Plugin (From: "Bridger Maxwell" <email@hidden>)

  • Prev by Date: Debugging a Plugin
  • Next by Date: Re: Enabling add button
  • Previous by thread: Debugging a Plugin
  • Next by thread: [Q] How to let the pasteboard know a file type?
  • Index(es):
    • Date
    • Thread