Enable webinspector on iOS devices for webpage debugging

Source: Internet
Author: User

The Apple WebKit Kernel on iOS retains the webinspector function of WebKit.

You can use it to debug the webpage of a mobile phone on the same LAN or by connecting to a Mac using USB.

For iOS 5 and later versions, you must use a new version of safari and enable the developer mode of safari.

Web Inspector function introduction see: http://trac.webkit.org/wiki/WebInspector

You can enable the Web Inspector function of safari through system settings.

However, this function is disabled by default for third-party browsers.

To break through this restriction, you can use this article.ArticleMethod: The http://blog.csdn.net/lucky_06/article/details/8925804 to debug it.

Call the following functions through GDB/lldb:

Po (void) [(ID) nsclassfromstring (@ "webview") performselector: @ selector (_ enableremoteinspector)];

Related Article

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.