O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging the iOS Cordova application using Safari Web Inspector

Debugging iOS Cordova can be done just like debugging a normal web application. We can catch network activities, inspect elements, and see the console logging.

How to do it…

To start debugging a iOS Cordova application, follow these steps:

  1. Open and run the HelloWorld project created before using Xcode.
  2. While the application is running on the simulator, open Safari. Go to Develop | iOS Simulator | index.html, as shown in the following screenshot:
    How to do it…
  3. We can inspect the element and check out Local Storage and Session Storage by choosing the Resources tab, as follows:
  4. We can see the network activities ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required