问题
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:
- Plug in your phone, make sure you're getting all the logcat messages
- Add this filter:
INFO:CONSOLE
- 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