# XCODE Debugger doesn't break on included "cpp" files?

**URL:** <https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140>\
**Category:** MacOSX and iOS\
**Created:** [January 4, 2014, 1:55pm UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140 "2014-01-04T13:55:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [January 4, 2014, 1:55pm UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140/1 "2014-01-04T13:55:38Z")

</div>

Does the&nbsp;XCODE Debugger doesn't break on included "cpp" files, when you set breakpoints?

Or is this just me? And if yes, it there a workaround.

---

<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 4, 2014, 2:04pm UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140/2 "2014-01-04T14:04:46Z")

</div>

There's a config you can set to force it to work properly.. I'm sure there's a thread about this somewhere on the forum, but can't seem to find it..

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [January 4, 2014, 2:14pm UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140/3 "2014-01-04T14:14:04Z")

</div>

if anybody finds it, that would be great to know for all juce users ;)

&nbsp;

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [January 4, 2014, 2:28pm UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140/4 "2014-01-04T14:28:07Z")

</div>

Is there an option to disable all "cpp" including of juce files, instead compiling directily in the project, in introjucer&nbsp;

If found some other obsucrish clang debugger behavior, and its impossible to find the problem in my project :((

It seems the programm counter jumps out of&nbsp;a method without any logic, when debugging step by step. but when placing jassertfalse it, it does break :((

&nbsp;

---

<div class="post-metadata">

**Author:** ![vipersnake](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@vipersnake](https://forum.juce.com/u/vipersnake)\
**Post date:** [January 4, 2014, 6:45pm UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140/5 "2014-01-04T18:45:37Z")

</div>

I used this link and it works flawlessly.

&nbsp;

&nbsp;

http://stackoverflow.com/questions/17680401/xcode-doesnt-break-in-included-cpp-files/17693317#17693317

---

<div class="post-metadata">

**Author:** ![ming4883](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@ming4883](https://forum.juce.com/u/ming4883)\
**Post date:** [March 14, 2014, 11:46am UTC](https://forum.juce.com/t/xcode-debugger-doesnt-break-on-included-cpp-files/12140/6 "2014-03-14T11:46:12Z")

</div>

According to LLDB's FAQ (http://lldb.llvm.org/troubleshooting.html)

Execute the following command in the terminal:

```
echo "settings set target.inline-breakpoint-strategy always" >> ~/.lldbinit
```

and then restart the XCode
