Apple's integration between macOS and iOS provides a native and efficient pathway for developers to debug web content directly on an iOS device from a macOS computer. This guide will cover the essential steps and tools required to set up a remote debugging session between Safari on an iOS device and a macOS computer.
Before to start remote debugging:
- Enable Develop on your Mac Safari through Safari Settings > Advanced Settings.
- On your iOS device, head over to the Settings > Safari.
- Find the Advanced section, then enable Web Inspector there.
You can now start remote debugging:
- Connect your iOS device to your Mac using a cable.
- On the Safari browser on your iOS device, open the desired URL that you are going to debug.
- On your macOS system, from the Develop menu on Safari, find your iOS device name and click on the page that you have already opened on your phone or tablet.
In the opened Web Inspector, you are able to debug the web page.
Conclusion
In this article, the remote debugging steps with an iOS device on a macOS system using the Safari browser on both sides was explained.
It is a practical web page investigation method which provides your the possibility to find mobile issues including mobile-friendliness and user experience with an iPhone or iPad view.
βΉοΈ You may also want to read:
πRemote debugging using Google Chrome on Android devices with Windows
πRemote debugging using Firefox on Android devices with Windows
πRemote debugging using Google Chrome on iOS devices with macOS
πResource: https://www.oxyplug.com/optimization/ultimate-guide-to-remote-debugging-webpages/
Top comments (0)