How to debug javascript in Android browser? The built in Android browser is very limited but this is how I solved the problem.
I had a javascript problem showing up on an old Android phone when using the old built in browser. When googling the problem i got a lot of answers that explained remote debugging with chrome. Which didn’t work out since no problem showed up in chrome.
There was also a few apps that I could install on my Android phone which provided an error console to the old browser or was a browser with a console on their own. But those didn’t work either.
Chromium
The Android browser is built on Chromium. If you type chrome:version
into the address field you get to know what version of Chromium it is running.
This is what mine looked like:
So at this point I figured I wasn’t going to debug it in the Android browser at all. If you look at the screenshot above you can see i have a Chromium version from 2013 installed.
So I headed over to the Chromium site with all the releases of Chromium, downloaded an old one from 2013 for Windows, started it on my laptop and the same error as on the phone occurred. But this time i had a javascript console which logged the error and its stack trace for me.