How to enable javascript console on Android 4.2.2

余生颓废 提交于 2019-12-22 04:46:35

问题


I'm trying to enable the JavaScript Console to debug a webpage in the stock Android browser on a Samsung Galaxy S4 running 4.2.2.

On the S3 I just type in about:debug in the address bar and it comes up but it doesn't work on the S4, it seems to do an autocomplete for chrome://debug.

Firstly it would be great to know how to get the console open and secondly why would Chrome's autocomplete be coming up for the stock browser?

Thanks


回答1:


I don't know how to activate this console.

But I have used a tool that can allow you to remote debug any browser with limited changes to your web page (only add one script). It is VorlonJS and you can find demo here: http://vorlonjs.com/#demo




回答2:


try this link remote debugging chrome. Well if are you developing on android greater than 4.0.3 you can type adb logcat and you would be able to catch your console.log or errors. Or if you want chrome enables mobile screen to test the view.It depends if you are testing the functionality or the graphics



来源:https://stackoverflow.com/questions/20648387/how-to-enable-javascript-console-on-android-4-2-2

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