# Vst plugin osx Xcode debug

**URL:** <https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371>\
**Category:** Audio Plugins\
**Created:** [January 11, 2016, 6:56am UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371 "2016-01-11T06:56:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjnam450](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@sjnam450](https://forum.juce.com/u/sjnam450)\
**Post date:** [January 11, 2016, 6:56am UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/1 "2016-01-11T06:56:41Z")

</div>

hello&nbsp;

i am new to vst plugin developing

not i use xcode, so i develop using juce and osx

&nbsp;

for debug, after web searching, i connect my daw(reaper, cubase) and xcode release

&nbsp;

but i can't use break point?

is is normal?? &nbsp;i can see printf(); etc

help me...

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 11, 2016, 9:41am UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/2 "2016-01-11T09:41:38Z")

</div>

> for debug, after web searching, i connect my daw(reaper, cubase) and xcode release

If you mean you were using 'release' mode for building your plugin&nbsp;then yes, that'd&nbsp;prevent breakpoints from working.

---

<div class="post-metadata">

**Author:** ![raketa](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/raketa/32/1725_2.png) [@raketa](https://forum.juce.com/u/raketa)\
**Post date:** [January 11, 2016, 2:10pm UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/3 "2016-01-11T14:10:00Z")

</div>

XCode 7 seem to have issues in general with C++ BPs.

I havent verified with 7.2 yet, but previously it was very unpredictable when and where a BP would actually trigger breaking into the debugger.

If somebody knows the&nbsp;cause or&nbsp;has a solution/workaround I would be very happy to learn about that!

Cheers,

raketa

---

<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 11, 2016, 3:30pm UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/4 "2016-01-11T15:30:39Z")

</div>

- Make sure you are running a Debug build.
- Make absolutely sure you are runnng a Debug build.
- Make sure you are in the _plugin's_ Xcode project, the process you are attached to is the _host_, and you actually load the plugin in the host.
- Create a file named .lldbinit (with the dot in front) in your home folder, and add this line to it:&nbsp;  
 settings set target.inline-breakpoint-strategy always

---

<div class="post-metadata">

**Author:** ![sjnam450](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@sjnam450](https://forum.juce.com/u/sjnam450)\
**Post date:** [January 12, 2016, 12:46am UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/5 "2016-01-12T00:46:03Z")

</div>

first

edit target , must select debug( for break point)&nbsp;

and Executable, choose your daw

&nbsp;

last &nbsp;cmd + r and you can debug with break point

&nbsp;

thank you all.

---

<div class="post-metadata">

**Author:** ![raketa](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/raketa/32/1725_2.png) [@raketa](https://forum.juce.com/u/raketa)\
**Post date:** [January 12, 2016, 9:49am UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/6 "2016-01-12T09:49:00Z")

</div>

Thanks, timur,

I am pretty sure I am using the debug build for debugging.

And I guess that wouldn't explain why it breaks somewhere and certainly not where my BP was. (Previous Xcode versions where picky about mixed line-endings and assigning the BP correctly, but&nbsp;that&nbsp;doesn't seem to be the cause here.)

Its not that some optimizations are turned on, creating a bit wired debug experience.

Cheers,

raketa

---

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [January 12, 2016, 11:44am UTC](https://forum.juce.com/t/vst-plugin-osx-xcode-debug/16371/7 "2016-01-12T11:44:18Z")

</div>

See: [http://www.juce.com/forum/topic/registerbasicformats-and-xcode-debugger](http://www.juce.com/forum/topic/registerbasicformats-and-xcode-debugger)

Rail
