Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show console messages on Android browser

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?

like image 897
Ek1noX Avatar asked Oct 17 '22 14:10

Ek1noX


1 Answers

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>
like image 69
Altair7852 Avatar answered Oct 21 '22 00:10

Altair7852