I don’t know if they work as expected, since I’ve never used them, but https://github.com/jcredland/juce-toys contains some utilities to help with debugging JUCE classes.
I was going to post @jimc’s solution, and although I managed to get it apparently installed without issue I just couldn’t get the results I was looking for in XCode, I assumed due to PICNIC and eventually just gave up. If anyone can give some instructions on how to actually use it properly I would be most grateful!
And also:
“In order to write effective summary scripts, you need to know the LLDB public API, which is the way Python code can access the LLDB object model. For further details on the API you should look at the LLDB API reference documentation.”
https://github.com/jcredland/juce-toys might allow me to do this - but reading the git I don’t see anything specifically about debugging JUCE object arrays… and…
Anyway, they may not be working at the moment?
There’s no way to natively view other elements besides [0] in the Xcode debugger?
I updated the Visual Studio version to work with the latest juce, and even do a little more unraveling of ValueTrees, but I never did that for the xcode version.
You should be able to index into the data element to see the individual values. It’s not terribly ergonomic, especially in Xcode since you cannot edit the generated expressions in-place. But, if you have a StringArray, stringArray, you can view the string at a given index by adding the expression stringArray.strings.values.elements.data[index] then expanding the text and data members.
I would also like to mention that if someone is using VS Code + CMake and the CodeLLDB extension, they can add the following to the “.vscode/settings.json” file: