Debug WebView for iOS app

Source: Internet
Author: User
UIWebView is more of a control in iOS, but Xcode doesn't provide the tools to debug WebView. So how do you debug WebView? Android with Chrome,ios of course you have to use Safari.

First, we need to display the develop menu in Safari. Open Safari, click Peferences, "Show Develop menu in Menubar".

If you are debugging in the simulator:
1, open the application in the simulator, and click on the need to debug the WebView page;
2. Develop, IOS Simulator, Xxx.app, in Safari, pops up the Web inspector for debugging.

If you want to debug with a real machine (you can only debug apps that are installed with Xcode):
1, first enable the Web Inspector on the phone: Point settings, Safari---Advanced, enable Web Inspector;
2, open the application, and click on the need to debug WebView page;
3, in Safari midpoint develop, device name, Xxx.app, pop-up Web inspector for debugging.

Debug WebView for iOS app

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.