Trouble debugging Juce projects (OS X)


#1

Hi, I'm on OS X 10.10.2 / Xcode 6.1.1 and I'm having trouble hitting breakpoints in the Juce Audio Plugin Host example project. The build config is set to Debug but my breakpoints are behaving as if I'm running a Release build. For example ...

 

for(...)       <= breakpoint 1

{ ... }

 

int blah = 0;   <= breakpoint 2

 

If I have breakpoints on the for loop and on the variable decl (immediately following the loop), I hit the loop - but then if I hit Continue in the debugger, it will skip the second breakpoint. In the same scenario, if I step through all iterations of the loop, I will hit the line that breakpoint 2 is on (there's no return in the body of the loop, and the code at breakpoint 2 is being executed). 

 

This is happening in lots of other cases as well. I have some breakpoints that I'm not able to hit, but I verified that the code is being called by adding printf's. 

 

Any help would be appreciated!


#2

Is it similar to this…?

https://forum.juce.com/t/registerbasicformats-and-xcode-debugger

Rail


#3

It doesn't seem to be related. I verified (with a printf) that registerBasicFormats() is not being called. I'm in the Plugin Host project, fyi. 


#4

Try my checklist: http://blog.credland.net/2014/03/xcode-debugger-why-do-you-stop-working.html

If you find it was something else, let me know, and I'll add it to the list :)