XCode breakpoints not working

Hi, I’ve read all the thread about it but nothing seem to work, so maybe I’m missing something.
XCode doesn’t stop on juce cpp files included in my project,
I already set settings set target.inline-breakpoint-strategy always into ~/.lldbinit , but nothing.
Any suggestion?

Just happened to me to so searched and found this post. In the end this was the answer: Why aren't Xcode breakpoints functioning? - Stack Overflow

1 Like

I’m having issues with breakpoints too. In my case, the field “Debug Information Format” within “Build Settings” keeps (for no reason I can find) resetting to “DWARF”. For breakpoints to work, it must be “DWARF with dSYM File”. What could be causing this?

You should set the following “Custom Xcode Flags” either in Projucer or your cmake file. I only can tell for the Projucer at the moment. Access your “Exporter” (in Projucer on the left - like “Xcode (macOS)”), then click on either “Debug” or “Release” and search for “Custom Xcode Flags”.
Put in the following:
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym, GCC_GENERATE_DEBUGGING_SYMBOLS=YES
Since it’s a while ago when I added these flags, I don’t know, if the second one is still needed.

1 Like

Ah nice, thank you!