Safari Remote Debugging on Windows

2019-02-12 10:47发布

With the release of iOS 6, Apple implemented a feature called remote debugging

A client is having problems with my webapp since installing the new iOS 6 and I can't figure out the issue. It doesn't seem to be an issue with caching of AJAX requests, because the errors occur randomly and the problem is not (only) that results are still the same.

So it has to be a problem with parallel AJAX-Calls

To identify the problem and efficiently fix it (instead stumbling in the dark) I need a debugger. I was happy to read about the remote debugging feature but I cannot get it to work.


The Questions now are:

  • Is it possible to use remote debugging in the Windows version of Safari?
  • If so, how do I activate it?

5条回答
爷、活的狠高调
2楼-- · 2019-02-12 11:25

Additionally, if you're BrowserSync (which u should, btw), you can use it's remote debugging feature which is accessible from the UI. It should work with Safari mobile.

There's a topic about this already: How to do remote debugging with Browser-sync?

This cool feature is powered by Weinre. Not the most pleasant debugger. But it works quite well.

查看更多
倾城 Initia
3楼-- · 2019-02-12 11:31

There is actually a pretty easy way to debug a website in Safari on iOS using Firefox WebIDE on a Windows machine. I wrote an answer at https://stackoverflow.com/a/35714835/306179 further describing this solution.

查看更多
手持菜刀,她持情操
4楼-- · 2019-02-12 11:41

How to debug Safari iOS when you're on Windows?

  • Those nice Safari developer tools for iPhone require Safari 6, i.e. they are NOT available on Windows. There are no plans for a Windows version of Safari 6 or, as Apple put it: "Safari 6 is available for Mountain Lion and Lion. Safari 5 continues to be available for Windows." (http://en.wikipedia.org/wiki/Safari_%28web_browser%29#Safari_6)

  • If your local web server (e.g.: XAMPP) is properly configured, you should be able to visit it from your iPhone once it's connected to your computer. However, on Windows, this does not work either.

Alternatives:

Hope this helps someone.

查看更多
霸刀☆藐视天下
5楼-- · 2019-02-12 11:45

Port forwarding on ios device is easy. but the problem is, that ios does not run inspector by default on any port by default.

查看更多
家丑人穷心不美
6楼-- · 2019-02-12 11:47

The only solution I see currently is Telerik "AppBuilder". However it's very expensive...

查看更多
登录 后发表回答