Debug Your Mobile Site in Android with Chrome Canary

| Coding Tutorials
android debug

Google's Chrome browser includes DevTools, a built-in feature similar to Firebug.

DevTools is really helpful for debugging CSS problems ... on a desktop computer. However, DevTools is not available for mobile devices.

In this tutorial, I'm going to show you how to use the Chrome Canary browser to debug CSS on your Android phone. Chrome Canary is a version of the normal Chrome browser, but it is modified specifically for developers.

Step #1. Enable debugging on your phone

The Developer options are hidden by default in Android 4.2 and above, so you will need to enable them.

  • Go to Settings > About device.
  • Tap "Build number" 7 times to unlock the Developer options menu.
  • The message "Developer mode has been turned on" will appear:
4
  • Go to Settings > More > Developer options:
1
  • Check the "USB debugging" box:
2

Step #2. Open Chrome Canary

Chrome Canary is available as a desktop browser. Download it from here.

Step #3. Connect your phone to Chrome Canary

Inside your phone:

  • Install and open the Chrome browser app.
  • Visit the website you need to debug.
  • A confirmation alert like the one below will open in your phone, tap OK.
3

Go back to your desktop computer:

  • Open Chrome Canary.
  • Go to this URL ... chrome://inspect
  • You will see a list of device that displays the website and other resources you are seeing on your phone.
  • Click the "inspect" link to access the screen of your mobile device from the computer.
5

From here, you're ready to debug the CSS of your mobile site in the same way you do with the desktop version. Check the CSS properties and play with them to improve your site design or fix your bugs. This is a Joomla site below, it works just as well with WordPress, Drupal and other platforms.

6

About the author

Valentín creates beautiful designs from amongst the tequila plants of Jalisco, Mexico. You can see Valentín's design work all over this site and you can often find him helping members in support.