How to check JavaScript errors in console on mobile chrome

Subscribe to my newsletter and never miss my upcoming articles

If you are building a serious project, you should probably use something like Sentry to get error reports. However, if you are not using such a tool and want to check console errors on phone, here are 3 easy steps:

  • Open Chrome and navigate to chrome://inspect.

log-error-1.png

  • Click on "Start Logging"

  • Open a new tab and load your website. Now come back to chrome://inspect tab and see the logs!

log-error-2.png


I used this method for one of my hobby projects and thought it might help someone.

Cover generated by an amazing tool called CoverView, built by Rutik Wankhade.

Hrithwik Bharadwaj's photo

Nice to learn something new Sandeep Panda. Great to see you use Rutik Wankhade's Tool for the Blog Cover

Chris Bongers's photo

Wow, golden tip! Didn't know about this one, I always just connect to my Chrome desktop haha. But this is seriously gold πŸ₯‡

Tapas Adhikary's photo

Short and Sweet, thanks for sharing Sandeep Panda

Stefan Natter's photo

Thanks for the tip! This is pure gold!

Rutik Wankhade's photo

Great tip! And also thank you for trying CoverView. It looks really nice.

Luiz Filipe da Silva's photo

Really helpful tip! I did not know how to do it. Thanks for sharing!

Amarachi Emmanuela Azubuike's photo

Thanks Sandeep for sharing. Please how do I get to chrome://inspect from my mobile phone when I open chrome?

Sandeep Panda's photo

Just type it in the address bar. :)

Corey O'Donnell's photo

Wow, #TIL!

This is an extremely nice tip when testing out mobile.

Bolaji Ayodeji's photo

Really insightful tip, thanks for sharing Sandeep Panda,

Mohd Shad Mirza's photo

Ameen Would be helpful to you

Mohd Shad Mirza's photo

Adding to TIL