# Debugging an audio plugin

**URL:** <https://forum.juce.com/t/debugging-an-audio-plugin/7174>\
**Category:** Audio Plugins\
**Created:** [July 18, 2011, 9:46am UTC](https://forum.juce.com/t/debugging-an-audio-plugin/7174 "2011-07-18T09:46:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtraction](https://avatars.discourse-cdn.com/v4/letter/x/3ec8ea/32.png) [@xtraction](https://forum.juce.com/u/xtraction)\
**Post date:** [July 18, 2011, 9:46am UTC](https://forum.juce.com/t/debugging-an-audio-plugin/7174/1 "2011-07-18T09:46:14Z")

</div>

Hi,

How can I debug a plugin in XCode that is crashing the host? this happens not when I load the plugin but when I attempt to process the audio…

I tried the “Attach to Process” in XCode but I can’t seem to male that work. What I did was I start up my host (currently tried on Audition) and I scan and load the plugin. Then In XCode I go to Attach to Process and pick Audition which is running and I get the message “No launchable executable present at Path”.  
What is the way to make this work or if there is another way of debuggin the plugin to know why its making the host crash?

---

<div class="post-metadata">

**Author:** ![CPB](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@CPB](https://forum.juce.com/u/CPB)\
**Post date:** [July 18, 2011, 10:52am UTC](https://forum.juce.com/t/debugging-an-audio-plugin/7174/2 "2011-07-18T10:52:58Z")

</div>

Either run Audition in the debugger from the command-line ( gdb audition ), or add Audition as a Custom Executable to your plug-in project ( XCode / Executables / Add / New Custom Executable ) and then Run / Debug.

---

<div class="post-metadata">

**Author:** ![Izhaki](https://avatars.discourse-cdn.com/v4/letter/i/f14d63/32.png) [@Izhaki](https://forum.juce.com/u/Izhaki)\
**Post date:** [February 12, 2012, 4:31pm UTC](https://forum.juce.com/t/debugging-an-audio-plugin/7174/3 "2012-02-12T16:31:43Z")

</div>

Might help others

In XCode 4 this is done via Product \> Edit Scheme \> Run \> Info \> Executable.
