Quick start
This tutorial will help you master the basic features of WebDebugX in just 5 minutes, enabling you to start debugging web applications on mobile devices. Whether you are debugging iOS Safari, Android Chrome, or WebView apps, this tutorial will get you up and running quickly.
Enable Web Inspector on mobile devices
Section titled “Enable Web Inspector on mobile devices”To debug browsers on mobile devices like Android and iOS, you need to enable the Web Inspector feature to allow debugging and page inspection of browsers on your mobile device. If remote debugging is not enabled on your device, see How to enable Web Inspector in Safari and Chrome.
Connect your device
Section titled “Connect your device”First, connect your mobile device to your computer:
- Launch the WebDebugX application
- Connect your mobile device to your computer using a USB cable
- Allow USB debugging on your mobile device (if prompted). For iOS, if prompted to “Trust This Computer”, tap Trust
- WebDebugX will automatically detect your device and display it in the device list
Tip: if you prefer to use WiFi for debugging, see the iOS WiFi debugging tutorial. If your device is not detected, install Keymob Assistant to fix the iOS drivers.
Select a debugging target
Section titled “Select a debugging target”After connecting your device, select the page or app you want to debug:
- In the device list on the left side of WebDebugX, click your device
- Click the refresh button next to it to fetch the page list. You will see the debuggable WebViews and browsers, along with the pages each one has open
- Select the page or app you want to debug, and debugging begins
Debugging pages with WebDebugX
Section titled “Debugging pages with WebDebugX”WebDebugX provides a debugging interface similar to Chrome DevTools, including the following key features.
Element inspection
Section titled “Element inspection”Inspect the structure and styles of page elements:
- In the debugging interface, click the Elements tab at the top left
- You will see the DOM structure of the page
- Click an element to view its CSS styles
- Use the Select element tool (the arrow icon at the top left) to pick elements directly on the page
- You can modify CSS styles and HTML content in the Elements panel, and changes are applied immediately on the mobile device
Console debugging
Section titled “Console debugging”Use the JavaScript console for debugging:
- Click the Console tab
- You can view JavaScript errors and logs
- Enter and execute JavaScript code in the console
- Use methods like
console.log(),console.error()andalert()to output debugging information
Network analysis
Section titled “Network analysis”Monitor network requests and responses:
- Click the Network tab
- You will see all network requests
- Click a request to view details, including request headers, response headers and response content
- Use filters to narrow down specific types of requests
Source code debugging
Section titled “Source code debugging”Debug JavaScript code. WebDebugX supports live debugging, meaning your actions in WebDebugX are immediately reflected on the page on the phone.
- Click the Sources tab
- Locate the JavaScript file you want to debug in the file tree
- Click a line number to add a breakpoint
- When execution reaches the breakpoint, you can inspect variable values and step through the code
Next steps
Section titled “Next steps”Now that you know the basics, continue with the more advanced techniques: Network debugging · Performance analysis · WiFi debugging