How can I inspect the window object for mobile safari?

后端 未结 5 2033
南旧
南旧 2020-12-06 06:33

How can I inspect the window object for mobile safari?

Or more specifically window.navigator - trying to convert to string doesn\'t work and I can\'t explore it with

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 06:38

    Update!!! On OS X you can use the Safari web inspector on the iOS Simulator AND iOS 6 devices.

    1. First enable the Developer menu in Safari.
    2. Next, enable remote debugging on your iOS device (or simulator).

      Settings > Safari > Advanced > Web Inspector (ON)
      
    3. Go back to Safari on your device.
    4. Go back to your computer, click the Developer menu, and select your device (e.g. iPhone Simulator, iPhone)

    Note: You'll see your device in the Developer menu ONLY when Safari is active and running.

    Enjoy!

提交回复
热议问题