Debug iPhone Safari on Mac without cable

Tired of your current video conferencing app?
Engage and interact in a fun virtual space with Remo - Get started for free.

Relevant to:

Guests Speakers Event Managers & Assistants Account Owners

Before iOS 6, the iPhone's Safari web browser had a built-in Debug Console that developers used to track down web page defects. If you have an iPhone running an early version of iOS, you can access the Debug Console through Settings > Safari > Developer > Debug Console. Whenever Safari on the iPhone detects CSS, HTML, and JavaScript errors, details of each are displayed in the debugger

All the recent versions of iOS use Web Inspector instead. You can activate this in the Safari settings on the iPhone or another iOS device. To use Web Inspector, you connect the iPhone to your Mac computer with a cable and open the Mac's Safari, where you enable the Develop menu in Safari's Advanced Preferences. Web Inspector is only compatible with Mac computers

Note: Information in this article applies to iPhones and other iOS devices running iOS 6 through iOS 12 and Macs on Mac OS X 10.5 Leopard and later unless otherwise noted

Activate Web Inspector on iPhone iOS 6 and Later

The Web Inspector is disabled by default since most iPhone users have no use for it. However, developers can activate it in just a few short steps. Here's how:

1. Tap the Settings icon on the iPhone Home screen

Debug iPhone Safari on Mac without cable

2. Scroll down until you reach Safari and tap on it to open the screen that contains  

    everything related to the Safari web browser on your iPhone, iPad, or iPod touch

Debug iPhone Safari on Mac without cable

3. Scroll to the bottom of the screen and tap Advanced menu

Debug iPhone Safari on Mac without cable

4. Toggle the slider next to Web Inspector to the On position

Debug iPhone Safari on Mac without cable

Connect iPhone to Safari on a Mac

To use the Web Inspector, connect your iPhone or another iOS device to a Mac that's running the Safari web browser. Plug your device into the computer using a cable

With Safari open, do the following:

1. Click Safari in the menu bar and choose Preferences

Debug iPhone Safari on Mac without cable

2. Click the Advanced tab in the Preferences

Debug iPhone Safari on Mac without cable

3. Select the box next to Show Develop menu in menu bar

Debug iPhone Safari on Mac without cable

4. Exit the settings window

5. Click Develop in the Safari menu bar and click Show/Connect Web Inspector

Debug iPhone Safari on Mac without cable

Your attached iPhone or other iOS device appears in the Develop drop-down menu. With Web Inspector open, developers can inspect all the resources on a web page. The Web Inspector window contains editable HTML and notes regarding the styles and layers of the web page in a separate panel. With Safari 9 and OS X 10.9 Mavericks, Apple introduced Responsive Design Mode in Web Inspector. Developers use this built-in simulator to preview how web pages scale to different screen sizes, resolutions, and orientations.

How do I debug my iPhone on my Mac?

Use Web Inspector to debug mobile Safari.
On your iPad, iPhone or iPod touch, tap Settings | Safari | Advanced and toggle on Web Inspector. ... .
On your Mac, launch Safari and go to Safari menu | Preferences | Advanced then check 'Show Develop menu in menu bar' if not already enabled..

How do I connect my iPhone to Xcode without cable?

Click on your device and in the right detail pane, check for “Connect via network ” checkbox..
Tick the checkbox and a network icon will be displayed toward the right of the device name..
Thats it. Disconnect your device and now you can install or debug without using the cable..

How do I connect my iPhone to my Mac for Safari?

Make sure Safari is turned on in iCloud preferences (on your Mac) and in Settings > [your name] > iCloud (on your iPhone, iPad, and iPod touch)..
In the Safari app on your Mac, click iCloud Tabs in the sidebar. ... .
Scroll to the list of your other devices..
Click a webpage to open it..

How do I debug Safari iOS?

Follow the steps below to use it:.
Connect the iOS device to the machine..
Enable the Web-Inspector option. To do so: Go to Settings > Safari > Scroll down to the bottom > Open Advanced Menu> ... .
Open the desired web page to debug or preview on your mobile Safari browser. Once done, enable the Develop menu on the Mac device..