This guide shows you how to use the Web Inspector on your iPhone or iPad to remotely debug live web pages in Safari. You’ll be able to inspect elements, view console logs, monitor network requests, and test JavaScript in real time—directly from your Mac. Before you start, make sure you have a Mac with Safari, an iPhone or iPad with a Lightning or USB-C cable, and that both devices have Safari’s developer tools enabled.
What You’ll Need
- A Mac running macOS with Safari (the latest version is recommended).
- An iPhone or iPad running iOS/iPadOS (the latest version is recommended).
- A USB cable to connect the iPhone/iPad to the Mac (Lightning or USB-C).
- Both devices must have Safari’s Develop menu enabled (steps below).
- Wi-Fi or cellular data is not required—the connection is over USB.
Step-by-Step
- Enable the Develop menu on your Mac. Open Safari on your Mac, go to Safari > Settings (or Preferences on older macOS), click the Advanced tab, and check the box next to Show features for web developers. This adds a Develop menu to Safari’s menu bar.
- Enable Web Inspector on your iPhone/iPad. On your iOS device, go to Settings > Safari > Advanced (or Settings > Safari > Advanced > Web Inspector on newer versions) and toggle Web Inspector to ON. On iPadOS, the path is the same, but you may also need to enable JavaScript if it’s off (it’s on by default).
- Connect your iPhone/iPad to your Mac. Use a USB cable to plug your iOS device into your Mac. If prompted on your iOS device, tap Trust to allow the computer to access your device’s data. You may also need to enter your device passcode.
- Open the web page you want to debug. On your iPhone/iPad, open Safari and navigate to the page you want to inspect. Make sure the page is fully loaded.
- Open the Develop menu on your Mac. In Safari’s menu bar, click Develop. You should see a submenu that lists your connected device (e.g., “iPhone”). Hover over it to see a list of open Safari tabs on that device.
- Select the tab to open Web Inspector. Click the tab name from the list. A new window (or a separate pane) will open on your Mac showing the Web Inspector for that page. The inspector is now live—any changes you make in the inspector will reflect on your iOS device in real time.
- Use the Web Inspector. The inspector has several tabs: Elements (to view and edit HTML/CSS), Console (to see logs and run JavaScript), Sources (to debug JavaScript), Network (to monitor requests), and Storage (to inspect cookies, local storage, etc.). Click each tab to explore the page’s internals.
- Test changes live. In the Elements tab, click any element to see its styles. You can edit CSS values directly—the change applies immediately on your iPhone/iPad. In the Console, type JavaScript and press Enter to execute it on the page.
- Disconnect when done. When you’re finished, simply unplug the USB cable or close the Web Inspector window. The Develop menu will no longer show your device.
Common Mistakes
- Forgetting to enable Web Inspector on the iOS device. If you don’t toggle it on in Settings, the device won’t appear in the Develop menu.
- Not trusting the computer. If you skip the “Trust” prompt, the Mac can’t access the device’s Safari data.
- Using the wrong cable. Some third-party cables only charge and don’t transfer data. Use the original Apple cable or a certified one.
- Looking for the Develop menu on the iOS device. The Develop menu only appears on the Mac, not on the iPhone/iPad.
- Expecting to see the inspector without the page being open. You must have a Safari tab open on the iOS device for it to show up in the Develop menu.
Tips
- Use the Network tab to check loading times and see which resources are failing—this is especially useful for debugging mobile-specific issues.
- In the Elements tab, you can right-click an element and select Copy > Copy as HTML to grab the exact markup.
- If you’re debugging a responsive layout, use the Responsive Design Mode on your Mac (under Develop) to simulate different screen sizes, but note that it’s not the same as the real device.
- Keep both devices on the same Wi-Fi network if you experience disconnects—though USB is more stable, some features may work over Wi-Fi if you enable it in the Develop menu’s Inspect Element options.
- If you have multiple tabs open on your iOS device, the Develop menu will list them all. Pick the right one—it’s easy to click the wrong tab.
Troubleshooting
- Your device doesn’t appear in the Develop menu. First, check that Web Inspector is enabled on the iOS device (Settings > Safari > Advanced > Web Inspector). Then, unplug and replug the USB cable, and tap “Trust” again if prompted. Restart Safari on both devices if needed.
- The Develop menu is missing entirely. Go to Safari > Settings > Advanced on your Mac and make sure “Show features for web developers” is checked. If it’s already checked, try quitting and reopening Safari.
- Web Inspector opens but shows a blank page. This can happen if the page hasn’t fully loaded on the iOS device. Refresh the page on your iPhone/iPad and try again. Also, make sure you’re not in private browsing mode, which can sometimes interfere.
- Changes in the inspector don’t reflect on the device. Make sure the Web Inspector is connected to the correct tab. If you have multiple windows open, you might be inspecting a different page. Also, some CSS properties may be overridden by the page’s own styles—check the Styles pane for conflicting rules.
- Connection keeps dropping. Try a different USB port on your Mac, and ensure the cable is fully plugged in. Avoid using USB hubs or extenders. If the issue persists, restart both devices.
- Console logs don’t appear. Ensure you’re looking at the correct console (there’s one per page). Also, filter the console by “Errors” or “Warnings” to see issues. If you’re using service workers, they may have their own console.
Frequently Asked Questions
- Can I use Web Inspector without a Mac? No, Web Inspector for Safari on iOS requires a Mac with Safari’s Develop menu. There’s no official way to inspect on Windows or Linux.
- Does the iPhone/iPad need to be on the same Wi-Fi as the Mac? No, the connection works over USB. Wi-Fi is not required for the basic inspection.
- Can I debug a page in Chrome on my iPhone? No, Web Inspector only works with Safari on iOS. For Chrome on iOS, you’d need to use a different tool (like Chrome’s remote debugging, but it’s limited on iOS).
- Why can’t I see the Develop menu on my Mac? The Develop menu is hidden by default. Go to Safari > Settings > Advanced and check “Show features for web developers”.
- Is it possible to inspect a page that’s in an iframe? Yes, in the Elements tab, you can switch to the iframe’s context using the dropdown at the top of the inspector. The console also has a context selector.
- Can I use Web Inspector on an iPad with a keyboard? Yes, the inspector works the same way. You can also use the on-screen keyboard on the Mac to type in the console.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- iOS 18 Safari Not Working? Fixes That Help
- How to Check Your Linux Kernel for Spectre
- iPhone Safe Mode: How to Enable or Disable It
- Fix Slow Internet Lag on Samsung Galaxy Note
- Google Play Protect: How It Secures Your Android
- Fix SFC Scannow Error in Windows: Complete Guide