# Xcode scheme for plugin development?

**URL:** <https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475>\
**Category:** Audio Plugins\
**Created:** [January 25, 2016, 6:06pm UTC](https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475 "2016-01-25T18:06:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [January 25, 2016, 6:06pm UTC](https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475/1 "2016-01-25T18:06:58Z")

</div>

Has anyone figured out a scheme for compile/run/debug for a plugin from one project?&nbsp;

Right now, I'm building my plugin from it's project, then go to the Plugin Host project and run that.&nbsp;

Seems like there could be a clever way to do it all in one project, but it escapes me.

&nbsp;

Thanks.

&nbsp;

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [January 25, 2016, 6:09pm UTC](https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475/2 "2016-01-25T18:09:00Z")

</div>

Yes, this is what people are doing: build the plug-in from its project, then launch the host app and attach your debugger to that, then load the plugin in the host.

Xcode has a thing in the Scheme settings so that you can tell it to launch the host and attach to it automatically, when you hit "Run" in the plugin's project:

![](https://docs.google.com/a/roli.com/uc?authuser=0&id=0B-YcSuujrbGNSXZmWXVjTG1TWnc)

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [January 25, 2016, 6:36pm UTC](https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475/3 "2016-01-25T18:36:23Z")

</div>

This looks great, but what about debugging?

&nbsp;

---

<div class="post-metadata">

**Author:** ![KoenTanghe](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/koentanghe/32/533_2.png) [@KoenTanghe](https://forum.juce.com/u/KoenTanghe)\
**Post date:** [January 25, 2016, 10:39pm UTC](https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475/4 "2016-01-25T22:39:20Z")

</div>

Did you try putting a breakpoint in your plugin code before running your debug version of the plugin? You should probably&nbsp;start with adding a breakpoint in a spot where you're sure the plugin code is getting called (such as your AudioProcessor constructor), and then once you're sure the breakpoint is being hit, remove it and set it where you really need it.

Note that some hosts (such as ProTools) may have trouble getting debugged (there are special development versions of ProTools that can help you with this, once you are a registered RTAS/AAX developer).

---

<div class="post-metadata">

**Author:** ![timur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/timur/32/541_2.png) [@timur](https://forum.juce.com/u/timur)\
**Post date:** [January 26, 2016, 9:22am UTC](https://forum.juce.com/t/xcode-scheme-for-plugin-development/16475/5 "2016-01-26T09:22:00Z")

</div>

Yes, debugging the plug-in should just work as normal&nbsp;(as long as the plug-in's Xcode project is attached to the host application, and the plug-in itself is loaded in the host).&nbsp;

Afaik the&nbsp;"3rd party developer" version of ProTools is mainly needed because the normal ProTools won't let you load unsigned&nbsp;AAX plug-ins (which debug builds are).
