Is it possible to open developer tools console in Chrome on Android phone?

Google Chrome-DevtoolsMobile Chrome

Google Chrome-Devtools Problem Overview


An AngularJS application works fine on desktop, but is not rendering properly on mobile (actual code is showing). This is on an Android phone.

I would like to see what errors are showing in the console.

Is it possible to open JS console on chrome app on mobile (like it is on desktop)?

Google Chrome-Devtools Solutions


Solution 1 - Google Chrome-Devtools

You can do it using remote debugging, here is official documentation. Basic process:

  1. Connect your android device
  2. Select your device: More tools > Inspect devices* from dev tools on pc/mac.
  3. Authorize on your mobile.
  4. Happy debugging!!

* This is now "Remote devices".

Solution 2 - Google Chrome-Devtools

When you don't have a PC on hand, you could use Eruda, which is devtools for mobile browsers https://github.com/liriliri/eruda
It is provided as embeddable javascript and also a bookmarklet (pasting bookmarklet in chrome removes the javascript: prefix, so you have to type it yourself)

Solution 3 - Google Chrome-Devtools

to use remote debug first active developer mode in android

1-in android>setting>search bulid number-->then click on it several times to activate developer mode

2- android>setting>developer options>enable usb debugging

3- connect to computer with usb cable

4-in chrome pc type chrome://inspect > enter

5- in mobile open url then monitor in pc chrome://inspect/#devices

Solution 4 - Google Chrome-Devtools

Please do yourself a favor and just hit the easy button:

download Web Inspector (Open Source) from the Play store.

A CAVEAT: ATTOW, console output does not accept rest params! I.e. if you have something like this:

console.log('one', 'two', 'three');

you will only see

> one

logged to the console. You'll need to manually wrap the params in an Array and join, like so:

console.log([ 'one', 'two', 'three' ].join(' '));

to see the expected output.

But the app is open source! A patch may be imminent! The patcher could even be you!

Solution 5 - Google Chrome-Devtools

Kiwi Browser is mobile Chromium and allows installing extensions. Install Kiwi and then install "Mini JS console" Chrome extension(just search in Google and install from Chrome extensions website, uBlock also works ;). It will become available in Kiwi menu at the bottom and will show the console output for the current page.

Solution 6 - Google Chrome-Devtools

The original answer doesn't seem to be valid anymore. From the current Chrome developer docs, these are the basic steps you need to go through:

> 1. Open the Developer Options screen on your Android. See Configure On-Device Developer Options. > 1. Select Enable USB Debugging. > 1. On your development machine, open Chrome. > 1. Go to chrome://inspect#devices. > 1. Make sure that the Discover USB devices checkbox is enabled.

After that, open Chrome on your Android device (and confirm the USB Debugging prompt in case it pops up). Switch back to your PC and you should see the currently open browser tabs:

enter image description here

Solution 7 - Google Chrome-Devtools

I you only want to see what was printed in the console you could simple add the "printed" part somewhere in your HTML so it will appear in on the webpage. You could do it for yourself, but there is a javascript file that does this for you. You can read about it here:

http://www.hnldesign.nl/work/code/mobileconsole-javascript-console-for-mobile-devices/

The code is available from Github; you can download it and paste it into a javascipt file and add it in to your HTML

Solution 8 - Google Chrome-Devtools

Try OutFront JS

It logs console messages to the screen. Very helpful to debug mobile browsers.

It helps:

  • Catch warnings, messages, and errors in mobile browsers.
  • Works on all mobile browsers, even the Chinese browsers.

Solution 9 - Google Chrome-Devtools

Remotely debugging Firefox is another option. the steps are mentioned here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questiontim_xyzView Question on Stackoverflow
Solution 1 - Google Chrome-DevtoolsPseudoAjView Answer on Stackoverflow
Solution 2 - Google Chrome-DevtoolstrogperView Answer on Stackoverflow
Solution 3 - Google Chrome-Devtoolsfatemeh sadeghiView Answer on Stackoverflow
Solution 4 - Google Chrome-DevtoolsSensei JamesView Answer on Stackoverflow
Solution 5 - Google Chrome-DevtoolsPawelView Answer on Stackoverflow
Solution 6 - Google Chrome-DevtoolsDaniel LemkeView Answer on Stackoverflow
Solution 7 - Google Chrome-DevtoolsJohn Balvin AriasView Answer on Stackoverflow
Solution 8 - Google Chrome-DevtoolsGauravView Answer on Stackoverflow
Solution 9 - Google Chrome-Devtoolszahra_oveyedzadeView Answer on Stackoverflow