最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to connect to iPhone's webkit debugger? - Stack Overflow

programmeradmin0浏览0评论

new iOS 6 feature is, that you can debug html and javascript running on device or simulator in desktop safari. I suppose, that this feature is based on Webkit Remote Debugging Protocol.

How can I connect to webkit running on iPhone without desktop Safari?

I can do this for mobile Chrome running on Android using websockets, but how can I do that for iOS devices?

new iOS 6 feature is, that you can debug html and javascript running on device or simulator in desktop safari. I suppose, that this feature is based on Webkit Remote Debugging Protocol.

How can I connect to webkit running on iPhone without desktop Safari?

I can do this for mobile Chrome running on Android using websockets, but how can I do that for iOS devices?

Share Improve this question edited Jan 11, 2013 at 21:33 Frank van Puffelen 600k85 gold badges890 silver badges860 bronze badges asked Jan 11, 2013 at 14:48 JanJan 4101 gold badge7 silver badges15 bronze badges 3
  • weinre works for iOS devices; I use it via Chrome on a Linux machine to debug Android and iOS both. – Pointy Commented Jan 11, 2013 at 14:56
  • ... well when I say it "works", I mean it functions up to the limits of its abilities. – Pointy Commented Jan 11, 2013 at 14:56
  • possible duplicate of Debug iOS 6 Safari using latest Chrome DevTools – Yogesh Suthar Commented Jun 5, 2013 at 4:26
Add a ment  | 

3 Answers 3

Reset to default 4

The ios-webkit-debug-proxy project (from Google!) does this.

You want to look at this code https://github./leftlogic/remote-debug/tree/master/safari - although it fails when it actually es to RPC calls that use __rpc_forwardSocketData.

If you've got any ideas why several of us are interested!

You need to open up the iPhone Simulator and browse to a website.

Then open Safari and choose "Develop" from the menubar. There is a the option called "iPhone Simulator".

If you hover over this you can see all of the open websites of the simulator.

This gives you the same inspector Safari uses. You can even see hovered elements in the iPhone Simulator.

发布评论

评论列表(0)

  1. 暂无评论