Logcat 不顯示日誌的另外一個緣由. 跟cocos2dx關係不大.

在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 之類的. 

(吐槽一下. 這麼久更新不了 由於密碼被重置了... 各類不能) 

相關文章
相關標籤/搜索