在Android真机调试时,若是在eclipse中看不到LogCat信息,提示是:app
$ adb logcat info: log device is empty!eclipse
缘由是系统默认关闭了log,须要将其打开。this
解决方法:调试
http://stackoverflow.com/questions/6941710/unable-to-open-log-device-dev-log-main-no-such-file-or-directoryip
Dial this: *#*#2846579#*#*
Service menu will appear.
Go to “ProjectMenu” -> “Background Setting” ->
-> “Log Setting” //Log设置中,设置LOG开关为开
-> “Log level setting” and set the log level you wish. // 设置log级别为Verboseio
Reboot the phone.后台
手机拨号: *#*#2846579#*#*
将会出现服务设置菜单.
选择 “ProjectMenu” -> “后台设置” ->
-> “Log 设置”,设置LOG开关为开
-> “Log 级别设置”,设置为本身但愿的log level.cli
以后重启手机就OK啦。file
H60-L01 亲测. gc
而后固然仍是得设置 COCOS2D_DEBUG=1 之类的.
(吐槽一下. 这么久更新不了 由于密码被重置了... 各类不能)