Debugging JavaScript console from iPhone without remote device

In the past debugging JavaScript console log output on a mobile phone was required to connect the phone to a computer and viewing the log in the browser connected to the phone.

Since 2019 chrome on IOS supports viewing the console log output directly from the phone.

This can be very useful when a live JavaScript app crashes and no computer is near by.

How to view console JavaScript output:

1. Open a tab in Chrome for iPhone with the URL chrome://inspect and turn debugging on by clicking “start logging” button.

2. Open a different tab that output the console.log output, navigate back to the tab chrome://inspect you can view the console log output.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store