Breakpoints work in app code but not in JUCE library code?


#1

I'm trying to step into some JUCE library code. I'm using XCode 4.6. If I compile the JuceDemo app and debug it, breakpoints work if they are set in the app-specific code such as MainWindow.cpp. But if I set a breakpoint in some other JUCE code, the stuff I want to see, the debugger does not stop at the breakpoint. I've tried a few modules like juce_PopupMenu.cpp, juce_Colour.cpp and so on that I know are being called.

What am I missing? Probably something simple. But it looks like everything is being built from source here, so I'm confused.

 

 


#2

Edit (or create) the file ~/.lldbinit and add the following line

settings set target.inline-breakpoint-strategy always

 

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

 

Would be cool, if introjucer would warn it this setting isn't active ;)


#3

It works! Many thanks!