cocos2d-console icon indicating copy to clipboard operation
cocos2d-console copied to clipboard

Can't use CCLOG() etc. on Mac OS via Terminal (not Xcode)

Open andybarron opened this issue 11 years ago • 1 comments

Hi! I'm currently using Cocos2d-x version 3.0 on Mac OS 10.9 Mavericks.

When using the cocos run command in the Mac OS Terminal, no output (i.e. from CCLOG calls, with COCOS2D_DEBUG enabled) is sent to the console. However, if I open up my CocosTest.app package and run the binary directly from the Terminal, or if I build and run the project using Xcode, CCLOG output appears as expected. I think the issue has something to do with .app files swallowing output from stdout when opened from the Terminal, as opposed to directly running the binary.

Also, it'd be nice if cocos compile and cocos run automatically added a preprocessor flag for COCOS2D_DEBUG in debug mode! :)

andybarron avatar May 05 '14 04:05 andybarron

Seems console can run application directly as described here

vovkasm avatar Feb 17 '15 11:02 vovkasm