This article will introduce several debugging methods and tools to solve the http://www.aliyun.com/zixun/aggregation/33906.html ">javascript debugging problem on mobile platform."
As a goal-ambitious mobile development framework, PHONEGAP enables developers to focus on business application development and allow applications to be developed and run on multiple mobile platforms. Now that PHONEGAP has been hatched into the Apache Foundation's Cordova project, many old documents and plug-ins may be obsolete. This article will use Xcode to demonstrate the debugging problems of PHONEGAP developing IOS applications, and the development tools and debugging methods of other platforms should be the same.
Preparatory work
development tool Preparation
To develop on the IOS platform, you need to install XCode as a development tool, you can open the App Store search XCode and get the latest version of the development tools. If you need to debug on the real machine, you will need the Apple iOS device and the iOS developer certificate.
Install PHONEGAP development environment
Installation PhoneGap is very simple, you only need to download PhoneGap installation files from the official and decompression, open the file lib/ios/cordova-1.x.x.dmg to install.
Develop PHONEGAP programs
Open XCode, and when you create a new project, select the cordova-based creator template below creator,
Figure 1. Select Project Template
Click Next and note: Do not select the item's use Automatic Reference counting (ARC) feature.
Figure 2. Do not use ARC
Finally, the WWW is dragged into the project, which completes a simple PHONEGAP application. Finally, you can use the IOS emulator to run this project.
More PhoneGap APIs
PHONEGAP contains many local interface calls, including acceleration sensors, cameras, video recordings, contacts, notification reminders, file storage, and more. The official documentation lists all the APIs and simple code examples. However, Apache Cordova does not yet have a user group mailing list, only a list of developers and contributors, and you can find active users and many helpful help on IRC #phonegap channels and Google group discussion groups.