Thanks for the responses, guys.
Cory, did you get Valgrind working for debugging iOS apps? I followed a blog post but all I get is “error: address doesn’t contain a section that points to a section in a object file”
C.J. Kimberlin wrote:
I didn’t have any issues debugging into C++ with xcode. What kind of issues are you having? You should just be able to set a breakpoint and dig in or let it crash and get the stack trace.
I have Xcode’s NSZombies in mind, which will tell you explicitly whenever a zombie object is released. Is this available with vanilla Xcode? Will I be able to get a friendlier error than “EXC_BAD_ACCESS”?
Thanks for the heads up, juyoung kim! The fact that the function must have NULL as the last parameter does not seem to be in the documentation: http://www.cocos2d-x.org/reference/native-cpp/d9/d2e/classcocos2d\_1\_1\_c\_c\_array.html\#a34643485c87a1451a6b1ddf3f147e9ad
I have created an issue for the documentation.