# Working in AudioPluginHost, Not in Logic, Debugger Help

**URL:** <https://forum.juce.com/t/working-in-audiopluginhost-not-in-logic-debugger-help/45419>\
**Category:** Audio Plugins\
**Created:** [April 8, 2021, 2:18pm UTC](https://forum.juce.com/t/working-in-audiopluginhost-not-in-logic-debugger-help/45419 "2021-04-08T14:18:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gguttilla](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@gguttilla](https://forum.juce.com/u/gguttilla)\
**Post date:** [April 8, 2021, 2:18pm UTC](https://forum.juce.com/t/working-in-audiopluginhost-not-in-logic-debugger-help/45419/1 "2021-04-08T14:18:42Z")

</div>

Hi all. I’ve been working on a plugin that reads from the side chain channel, performs some analysis on the incoming buffer, and does processing from there. This all works perfectly in the AudioPluginHost, and passes the auval fine/loads in logic, but seems to be unable to perform the analysis step within logic specifically. It works in AudioPluginHost with all different sample sizes as well as buffer sizes too.

Is there a way to set breakpoints within Xcode so that when I load my plugin within logic I can trigger them? I’ve tried messing with the scheme in Xcode to launch Logic but it never seems to trigger breakpoints/capture cout messages.

Not sure if this could have to do with the fact that I am using side chain audio? Although I have found that the audio seems to be loading in properly, just no processing is being done properly

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [April 8, 2021, 6:10pm UTC](https://forum.juce.com/t/working-in-audiopluginhost-not-in-logic-debugger-help/45419/2 "2021-04-08T18:10:23Z")

</div>

Is this an Apple Silicon machine?  
If so, feel free to complain to Apple.

[https://developer.apple.com/forums/thread/674706](https://developer.apple.com/forums/thread/674706)

Hoping it’ll escalate enough.

In the meantime, you can turn off SIP and attach to the AUHosting process.

> [@Issues with M1](https://forum.juce.com/t/issues-with-m1/43476):
>
> Hi, just setup a new M1 machine and have a couple of problems: AU plugins are only being recognised from the main Library folder in Logic and in AudioPluginHost. Anything in ~/Library is not being picked up - don’t remember this being a setting anywhere, but maybe it is? FYI, if I manually copy the JUCE generated plugin in ~/Library to /Library it is picked up fine. Live will only show release build plugins and not debug build plugins - I know Live isn’t officially supported on Big Sur yet…

---

<div class="post-metadata">

**Author:** ![gguttilla](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@gguttilla](https://forum.juce.com/u/gguttilla)\
**Post date:** [April 8, 2021, 6:43pm UTC](https://forum.juce.com/t/working-in-audiopluginhost-not-in-logic-debugger-help/45419/3 "2021-04-08T18:43:50Z")

</div>

Yes, it is apple silicon.

I’ll try turning off SIP, but I’m also not sure if I’m doing this properly as Xcode debugging is new to me. I’ve been trying to set breakpoints, build the plugin for debug as an AU, then in my run scheme I specify logic to open. within logic, I then load up my plugin and try to use it. Should I be expecting it to reach breakpoints or am I totally backwards here?

Also, do you have any idea in a more general sense why a plugin would work in AudioPluginHost but not in logic (confirmed data is being read from buffers fine)? Is there some memory formatting difference that might effect processing?

Thanks so much
