当前位置: 动力学知识库 > 问答 > 编程问答 >

How to enable javascript console on Android 4.2.2

问题描述:

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

网友答案:

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

网友答案:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: