acegs
acegs

Reputation: 2809

CCAssert() and CCLOG() don't work in cocos2dx classes

I have a problem with COCOS2D_DEBUG. CCAssert() and CCLOG() is enabled in the classes I created but not inside any cocos2dx classes. I see my logs in debug console but logs of cocos2dx is not displaying even if I traced them using step-in, step-out, etc.

I added new scheme to my project so I can switch provisioning profile easily. I added COCOS2D_DEBUG = 1 on that scheme in Preprocessor Macros in Build Settings. I have it all setup and it is working except for the problem in CCAssert() and CCLOG().

I have no idea why they are not working. I need them specially CCAssert() to prevent any wrong code that I am doing. I need to enable them since I'm in a team project.

I am using the new scheme that I created. I notice in cocos2dx.xcodeproj > Build Settings > Preprocessor Macros, there are only Debug and Release. Do I need to add also my scheme in cocos2dx.xcodeproj?

Upvotes: 1

Views: 1891

Answers (2)

ritu
ritu

Reputation: 33

Yes i have faced this issue before.You need to use CCLog instead of CCLOG

Upvotes: 0

Oren Bengigi
Oren Bengigi

Reputation: 1034

Try using CClog() instead of CCLOG()

Upvotes: 1

Related Questions