问题
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