How to debug iPhone safari web pages on Mac

        If there is no problem with the PC browser or simulator, but there is a problem when running on the iPhone, first use the Safari browser that comes with the iPhone to view the web page. If the same problem occurs in the browser, you can debug it with Safari on the Mac. , find out the problem.

The steps are as follows:

1. Connect the iOS device and Mac computer with a data cable

2. Enable " Web Page Inspector " on your iOS device : Visit " Settings " > " Safari " > " Advanced " > Open " Web Page Inspector "

3. Use the Safari browser on your mobile device to open the web page you want to debug.

4. Open the Safari browser on your mac and follow the steps below to open the debugger.

 

 5. After successfully opening the web debugger, you can easily debug web pages on mobile safari.

Guess you like

Origin blog.csdn.net/weixin_38649188/article/details/130226682