Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andybarron opened this issue May 5, 2014 · 1 comment
Open

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

andybarron opened this issue May 5, 2014 · 1 comment

Comments

@andybarron
Copy link

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! :)

@vovkasm
Copy link

vovkasm commented Feb 17, 2015

Seems console can run application directly as described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants