Return to site

Debug mac safari ipad emulator

broken image
broken image
broken image

Remote debugging will not work if Private Browsing is enabled. Open your device’s Safari settings and ensure that Private Browsing is turned off. Here’s how to set up for debugging PhoneGap apps with Safari’s web inspector. Sorry, no inspecting apps downloaded from the App Store! Note that you can only inspect UIWebView content in apps that were transferred to a device from XCode. Not only can you remotely debug web pages in mobile Safari, you can remotely debug any web page in any plain old UIWebView, which just happens to include that UIWebView hosting your PhoneGap application. With Safari 6 and higher (OS X only, sorry Windows) you can use Safari’s developer tools to remotely debug web pages in mobile Safari on an iOS device. If this happens to you on iOS, and you are targetting iOS 6 or higher, you’re in luck… well, aside from that nasty defect you just found, but hey, it happens! Inevitably, however, you’ll run into a problem that is only reproducible on a device.

broken image

Ideally, you’ll be able to reproduce the problem in a desktop web browser, fix it, and move on. At some point, something will go wrong in your PhoneGap application, and you’ll want to know why.