Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For Eclipse, CCLog doesn't work. CCMessageBox works well

I'm using the latest code checked out from GitHub. (0.13.0 beta)

I'm developing for Android with Eclipse. I did added *COCOS2D_DEBUG* in Android.mk. I checked and made sure that COCOS2D_DEBUG was indeed defined with the value of 1.

Problem: CCLog won't print anything to the LogCat. In the meantime, CCMessageBox works well.

(I then tested the same set of code on iOS, both CCLog and CCMessageBox work well.)

What am I missing here?

like image 375
Di Wu Avatar asked Apr 25 '12 08:04

Di Wu


2 Answers

Just wondering two thing: 1. are you using CCLog or CCLOG (all big case)?

did you put

    #define COCOS2D_DEBUG 1

at the really top (higher than any #include) in the cpp file that you wanna debug?

like image 54
m.ding Avatar answered Nov 05 '22 09:11

m.ding


Use CCLOG("Test String"), all upper case, it will work. CCLog("Hello") don ´t work in eclipse log cat.

like image 33
vgonisanz Avatar answered Nov 05 '22 10:11

vgonisanz