Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one debug javascript on a samsung tablet's native browser

I am currently working on a HTML/JS application that will be embedded in an iOS and an Android app. Because the android app is not yet finished I am testing this on the chrome browser in Android. I fixed all issues there but when I open the same web app in the native browser nothing really works as expected.

So my question is : Is there a way to debug in a native browser on an android device?

In chrome this was pretty easy with remote debugging.

(Please do not advice me to use 'log' statements for debugging because that's not what I am looking for here)

And just to spill my guts : the Samsung Tablet's native browser is the only device that's causing me a headache!

like image 789
Yannick Avatar asked Jul 03 '13 08:07

Yannick


People also ask

How do you inspect element on Samsung browser?

Shown below are steps on how to inspect elements on Android devices using Chrome on Android. Open the developer options screen and enable USB debugging on your device. On your desktop Chrome, type chrome://inspect#devices and press Enter. Enable Discover USB devices if not enabled by default.


2 Answers

Typing about:debug in the address bar of the native browser will toggle the 'Debug' options in the settings menu.

The 'Show JavaScript Console' option will allow you to see JavaScript errors in your webpage.

NB I believe the JavaScript Console will only be displayed if there is an error.

HTH

Nick.

like image 111
Nick 'BadAttitude' Gibson Avatar answered Sep 25 '22 19:09

Nick 'BadAttitude' Gibson


The new Samsung Internet browser (I think you meant this browser with "Samsung Tablet's native browser") is now based on the Chromium browser and thus supports its remote debugging interface.

  1. Enable USB debugging on your device as described here.
  2. Then connect your device via USB (Oh, surprise!).
  3. Visit chrome://inspect on your computers Google Chrome browser and you will be guided to create the connection:

    Chrome inspect

  4. Then you just have to click on the devices inspect link and an developer tools window will pop up.

More info like why there is an Samsung Internet Browser at all can be found here.

like image 21
Sebastian Barth Avatar answered Sep 23 '22 19:09

Sebastian Barth