7

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

Giles Butler
  • 971
  • 3
  • 14
  • 23
  • Did you enable dev tools in the browser options? – Jonathan Dec 18 '13 at 02:05
  • This worked for me: http://android.stackexchange.com/questions/5999/android-browsers-aboutdebug-what-do-those-settings-do – Jonathan Dec 18 '13 at 02:07
  • 1
    The debug tools are available in the chrome://debug page tab, where typing about:debug sends you. (The page reads, "This webpage is not available") . As soon as you navigate away or if you switch to a different open tab, they disappear, so the tool is not at all useful. @Jonathan, you will have to provide more info. Are you on an S4, 4.2.2? What part of your provided link helped you? – Greg Feb 28 '14 at 16:49
  • Thanks for the feedback Greg, I'm no longer working on that project or have access to an S4 but I never managed to get it working either. – Giles Butler Mar 03 '14 at 22:02
  • 2
    @Greg, The link I shared worked to open a console on several of my Android devices, but, as you point out it isn't very helpful. Ultimately, I used Chrome desktop's remote debugging feature for one of my projects. https://developers.google.com/chrome-developer-tools/docs/remote-debugging – Jonathan Mar 12 '14 at 06:33
  • Same problem here on Samsung S4 mini (Android 4.2.2). – tedi Dec 12 '16 at 14:33

2 Answers2

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

Arnaud Develay
  • 3,920
  • 2
  • 15
  • 27
0

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

Fedeco
  • 846
  • 10
  • 28