I have the same problem. When using Coco2D-x the debugger is absolutely useless, it show NULL to a lot of things, which are not null. I got used to using CCLOG instead, but it makes development really slow. This problem is driving me crazy…
I have figured out that every variable becomes NULL automatically, if it is not going to be referred anymore in the current scope. I think this might be some kind of optimalisation, and I have no idea how it could be disabled. Debugging is a nightmare compared to Cocos2D-iPhone.
I have the same problem. You remind me may be we should try the build setting -O?
Adam Fischer wrote:
I have figured out that every variable becomes NULL automatically, if it is not going to be referred anymore in the current scope. I think this might be some kind of optimalisation, and I have no idea how it could be disabled. Debugging is a nightmare compared to Cocos2D-iPhone.