Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 867
StormFoo Avatar asked May 21 '14 14:05

StormFoo


1 Answers

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
like image 114
JstnPwll Avatar answered Oct 21 '22 12:10

JstnPwll