加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

COCOS2DX ANDROID 打印不出日志

发布时间:2020-12-14 18:53:33 所属栏目:百科 来源:网络整理
导读:在Android实机调试时,若是正在eclipse中看没有到LogCat疑息,提醒是: $ adb logcat info: log device is empty! 缘由是体系默许封闭了log,须要将其翻开。 办理方式: 在Android真机调试时,如果在eclipse中看不到LogCat信息,提示是: $ adb logcat info:

在Android实机调试时,若是正在eclipse中看没有到LogCat疑息,提醒是: $ adb logcat info: log device is empty! 缘由是体系默许封闭了log,须要将其翻开。 办理方式:


在Android真机调试时,如果在eclipse中看不到LogCat信息,提示是:

$ adb logcat info: log device is empty!

原因是系统默认关闭了log,需要将其打开。

解决方法:

http://stackoverflow.com/questions/6941710/unable-to-open-log-device-dev-log-main-no-such-file-or-directory

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级别为Verbose

Reboot the phone.

手机拨号: *#*#2846579#*#*
将会出现服务设置菜单.
选择 “ProjectMenu” -> “后台设置” ->
-> “Log 设置”,设置LOG开关为开
-> “Log 级别设置”,设置为自己希望的log level.

之后重启手机就OK啦。


http://www.ithao123.cn/content-721738.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读