Mark's Blog About Search Activity

Debugging in android browser - view uncaught javascript errors

I was struggling to see why my site wasn’t loading on my android browser. Running ddms from the console wasn’t helping. Most blog posts suggested littering console.log() throughout the app that would show up in ddms log. Thankfully found this tip on:

http://stackoverflow.com/questions/2314886/how-can-i-debug-javascript-on-android

navigate to about:debug on the browser which enables more javascript setting. This threw me a bit since it didn’t really show me anything. However, what it does do is enable additional settings for javascript. Now, when a page is loaded with script errors, “show javascript console” appears:

More helpful details here: http://android.stackexchange.com/questions/5999/android-browsers-aboutdebug-what-do-those-settings-do

(Note: see prior post on how to grab screen from android)

If you liked this post, you can share it with your followers or follow me on Twitter!
comments powered by Disqus