<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Safari Web Inspector on prometheus</title><link>https://new.halfrost.com/zh/tags/safari-web-inspector/</link><description>Recent content in Safari Web Inspector on prometheus</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><copyright>halfrost</copyright><lastBuildDate>Mon, 02 May 2016 22:04:00 +0000</lastBuildDate><atom:link href="https://new.halfrost.com/zh/tags/safari-web-inspector/index.xml" rel="self" type="application/rss+xml"/><item><title>Remote debugging on iOS with Safari Web Inspector</title><link>https://new.halfrost.com/zh/remote_debugging_on_ios_with_safari_web_inspector/</link><pubDate>Mon, 02 May 2016 22:04:00 +0000</pubDate><guid>https://new.halfrost.com/zh/remote_debugging_on_ios_with_safari_web_inspector/</guid><description>之前在公司调试Hybrid其实很蛋疼。。都是本地打开zip包，运行js，然后调试，每次都要找到zip，比较麻烦，后来发现了这个远程调试的方法，直接插上手机就可以调试了，不用那么麻烦了，而且可以直接在手机上看到实时的效果。
后来发现有一些Js前端开发还不会这个方法，今天就分享出来，大家都看看，有啥问题请多指点。
1.首先iPhone连接上Mac，点击信任，确保itunes连接成功，然后打开iPhone的“设置” - “Safari” - &amp;ldquo;高级&amp;rdquo; - 打开“JavaScript” 和 “Web检查器”
2.打开Mac上的Safari，选择“偏好设置” - “高级” - &amp;ldquo;在菜单栏中显示“开发”菜单&amp;rdquo;
3.打开iPhone上的Safari或者运行PhoneGap程序，到某一个界面，回到Mac上的Safari上，选择“开发”，然后选择你的iPhone，就可以查看到那个一个Web界面了</description></item></channel></rss>