如何开启 Cocos2D CCLOG Debug 模式?
本文介绍了如何开启 Cocos2D CCLOG Debug 模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在网络上,我看到人们发布这样的内容:
Around the web I see people posting things like this:
但是,当我在调试模式下运行我的应用程序时,我没有得到这样的日志.有没有办法使用 Cocos2D 2.0 打开它?如果有,怎么做?
However I do not get logs like this when I run my app in debug mode. Is there a way to turn this on using Cocos2D 2.0? And if so, how?
谢谢!
推荐答案
将此语句添加到您的 PCH 文件中:
Add this statement to your PCH file:
#define COCOS2D_DEBUG 1
这应该设置首选项以打开它.
That should set the preference to turn it on.
这篇关于如何开启 Cocos2D CCLOG Debug 模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!