Debugging in the stock browser on a Samsung Galaxy S4 on KitKat

放肆的年华 提交于 2019-12-04 16:26:29

问题


We have a Javascript bug that only appears in the stock browser of the Galaxy S4 (GT-I9505) running KitKat (4.4.2) and we're unable to debug it or view the Javascript console. I've tried running about:debug and it does enable the debug menu, but it also redirects me to a 'page not found' and going back/forwards removes the debug menu.

We've also tried using logcat, but no messages are shown (this command works perfectly on a Nexus 4 JellyBean and in an emulated Gingerbread).

adb logcat browser:V WebCore:V Console:V *:S

We've also tried JSConsole and Firebug Lite but nothing useful is shown on their console. We also implemented the 'DIY Console' as suggested by EclipseSource and while it did show an error, it doesn't tell us which file the error comes from or any specific details.

Does anybody have any other suggestions for things to try, or a solution as to why about:debug isn't behaving properly?


回答1:


I don't know if this will work for you, but I have a Galaxy S4 and I was able to see console messages this way:

  1. Plug in your phone, make sure you're getting all the logcat messages
  2. Add this filter: INFO:CONSOLE
  3. Javascript errors are printed under the chromium tag and the "Info" log level


来源:https://stackoverflow.com/questions/23786275/debugging-in-the-stock-browser-on-a-samsung-galaxy-s4-on-kitkat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!