Chrome has a web console that is very useful for debugging websites. It’s very easy to access on the desktop, but the Android version of Chrome doesn’t seem to have one. In fact, debugging websites in a mobile web browser is complicated because not many browsers have a built-in web console to detect. However, if you use Chrome on your Android device, you can get the console log for any website. The only catch is that you will have to use your desk for that too. Anything goes here; Windows, Linux or macOS, but the Chrome browser must be installed on your desktop.
On your Android phone
On your Android phone, you need to do three things;
- Install Chrome.
- Enable developer options. You can do this by going to the Settings app, finding System and tapping the build number seven times.
- Enable USB debugging. Go through the developer options and enable USB debugging there.
After doing all of the above, open Chrome on your phone and connect your phone to your computer via the data cable. Allow USB debugging on your phone if prompted. Go to the website you want to debug.
On your desk
Open Chrome on your desktop. Paste the following into the URL bar and hit enter.
Your Android phone will appear here. Click the Inspect option below the tab for which you want to view the web console.
A new window will open. You can communicate with the Chrome browser on your Android phone via the left panel in this window, or you can communicate with it on your device, as long as you do not disconnect it from your computer.
At the bottom right you will see the console for it. When you are done interacting and ready to save the console log, right-click in the console and select the save option. The log file is saved as a LOG file, but can be viewed with any text editor of your choice.
It only works between Chrome browsers and not Chromium-based browsers. Chromium-based browsers may have an internal device page, but the chances of it detecting Chrome on your Android phone or any other browser on your Android phone are quite small. If you need to test a website on a particular Chromium-based browser, you can try this trick and see if you’m lucky, but it’s mostly a Chrome feature.
The post How to get Chrome Web Android console login first appears on TechtricksNg.