Show console messages on Android browser

Issue

I do web development with an Android (not rooted) phone and look for a method to show the browser (Chrome or Firefox) console messages.
Neither Android Chrome nor Firefox has web inspector/console and I don’t found Firefox (working) add-on.

Update: I can’t connect my phone to a computer (ADB, Chrome remote tool… are unavailable).

Anybody can hint me a viable solution?

Solution

Try https://github.com/liriliri/eruda, very good approximation of Dev Tools.

All you need to do is add this snippet on top of the page:

      <script src="//cdn.jsdelivr.net/npm/eruda"></script>
      <script>eruda.init();</script>

Answered By – Altair7852

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published