Android Chrome debugging
This tutorial guides you through debugging Chrome on an Android device with WebDebugX. You will learn how to connect an Android device, debug pages in Chrome, analyze performance problems, and work around the common debugging pitfalls.
Before you start
Section titled “Before you start”Before debugging Android Chrome, make sure you have:
- The latest version of WebDebugX installed
- The Android device you want to debug (phone or tablet) at hand
- Chrome installed on the Android device
- The device and computer on the same network (if you are using WiFi debugging)
Tip: for Android Chrome debugging you need USB debugging enabled on the device, under Settings > Developer options — see How to enable Web Inspector.
Connect the device
Section titled “Connect the device”- Connect the Android device to the computer with a USB cable
- Allow USB debugging on the Android device (if prompted)
- Launch WebDebugX
- WebDebugX detects your Android device automatically
Select a Chrome tab
Section titled “Select a Chrome tab”- In the WebDebugX device list, click your Android device
- On the device detail page you will see Chrome and the list of tabs it has open
- Select the tab you want to debug
- Click Start debugging
Tip: if you cannot see any Chrome tabs, make sure Chrome is open on the device and at least one tab has a page loaded.
Debugging Chrome content
Section titled “Debugging Chrome content”Inspect page elements
Section titled “Inspect page elements”- In the debugging interface, click the Elements tab
- You will see the full DOM tree of the page
- Click an element to view its attributes and styles
- Right-click an element to edit, delete or add elements
- Use the Select element tool (the arrow icon at the top left) to pick elements directly on the page
Debug JavaScript
Section titled “Debug JavaScript”- Click the Console tab
- Execute JavaScript in the console
- View JavaScript errors and logs
- Use
console.log(),console.error()and similar methods to output debugging information
Monitor network requests
Section titled “Monitor network requests”- Click the Network tab
- You will see every network request
- Click a request to view details, including request headers, response headers and response content
- Use filters to narrow down specific types of requests
- Enable Preserve log to keep request records across page navigations
Debug JavaScript sources
Section titled “Debug JavaScript sources”- Click the Sources tab
- Find the JavaScript file you want to debug in the file tree
- Click a line number to add a breakpoint
- When execution reaches the breakpoint, inspect variable values and step through the code
- Use the Watch panel to track variable values
Device mode
Section titled “Device mode”WebDebugX offers a device mode that emulates different mobile devices:
- In the debugging interface, click the Device mode icon (the phone icon) at the top right
- Choose the device to emulate from the dropdown (Pixel 5, Galaxy S21, and so on)
- You can also switch device orientation (portrait / landscape)
- Adjust the zoom level to see the page at different sizes
Tip: device mode is useful for testing responsive design — you can check how your page looks on devices you do not physically own.
Performance analysis
Section titled “Performance analysis”Performance panel
Section titled “Performance panel”- Click the Performance tab
- Click Start recording
- Interact with the page on the Android device
- Click Stop recording when you are done
- Analyze the timeline — CPU usage, rendering events, and so on
Memory analysis
Section titled “Memory analysis”- Click the Memory tab
- Choose an analysis type (heap snapshot, allocation timeline, and so on)
- Click Start recording
- Interact with the page on the Android device
- Click Stop recording when you are done
- Analyze memory usage and look for possible leaks
Network performance
Section titled “Network performance”- Enable Preserve log in the Network panel
- Reload the page and review every request
- Analyze load times and sizes
- Look for resources you can optimize — compress images, combine CSS / JS files, and so on
- Use network throttling to simulate different network conditions
Advanced techniques
Section titled “Advanced techniques”Simulate different network conditions
Section titled “Simulate different network conditions”- In the Network panel, open the Throttling dropdown
- Choose a preset (3G, 4G or Offline)
- Or choose Custom and set upload / download speed and latency
- Reload the page and observe the loading behaviour
Simulate geolocation
Section titled “Simulate geolocation”- In the debugging interface, click More tools (the three dots)
- Choose Sensors
- Under Geolocation, pick a preset location or enter custom coordinates
- Reload the page — it will use the simulated location
Simulate device orientation
Section titled “Simulate device orientation”- In the debugging interface, click More tools (the three dots)
- Choose Sensors
- Under Device orientation, adjust the alpha, beta and gamma values
- Or use a preset orientation (landscape left, landscape right, and so on)
- The page responds to the simulated orientation change
Save and restore a debugging session
Section titled “Save and restore a debugging session”- In the debugging interface, click File > Save session
- Enter a session name and pick a location
- Later, restore it via File > Open session
- This is particularly useful for long debugging runs or team collaboration
Troubleshooting
Section titled “Troubleshooting”The device does not appear in WebDebugX
Section titled “The device does not appear in WebDebugX”- Make sure USB debugging is enabled on the Android device
- Check that the USB connection is working
- Try a different USB port or cable
- Restart WebDebugX and the Android device
For a fuller checklist, see Device not found.
Chrome tabs do not appear
Section titled “Chrome tabs do not appear”- Make sure Chrome is open on the Android device
- Check that Chrome remote debugging is enabled
- Try closing and reopening Chrome
- Restart WebDebugX
The debugging interface is unresponsive
Section titled “The debugging interface is unresponsive”- Check that the network connection is stable
- Try reconnecting the device
- Close and reopen the debugging session
- If the problem persists, restart WebDebugX