JavaScript use Deviceone development Combat (ii) Generate debugging installation package _javascript Tips

Source: Internet
Author: User

In the previous article to introduce the JavaScript use Deviceone development Combat (a) configuration and start, this article continues to introduce about JavaScript actual combat related content, study together.

To generate a debug installation package

The first thing to note is that this step is not required every time you debug the app, most of the time you generate a debug installation package and you can ignore the entire step after you install it on your phone. Because the Debug installation package contains many native components that can be customized and checked, if you need to add some additional native components, you need to check for more components and rebuild the debug installation package.

Click on the "Build Debug Version" button in the debugger's menu, and if you are not logged in, you will be prompted to sign in

If you have more than one project open, you need to select a specific project that you want to package, and you need to be networked when you package.


It only takes a few minutes, "packaging ..." will be completed, become a "download installation", you can choose a two-dimensional code installation or download files to the computer and then through the tool to install to the phone.


Debugging development

After installing the installation package from the previous step on a mobile device (cell phone or pad), the basic interface is as follows, and the Android,ios and Winphone basic interfaces are the same. To debug, you need to first right-click the "Create" button in the designer, click "Start" to start the service, record the IP address and port number displayed, and then enter the IP address into the "service address" of the debug version on the phone. Note that you will not be able to communicate if your phone's IP and designer IP is on the same network segment. Finally click the "Update" button

After the success of the update, click on the "Enter" button, you can see the design of the app developed on the phone's real effect, we can see and designers see the effect is exactly the same, can see green label, can also click the "Say Hello" button, will pop up "Hello deviceone!!! “。 In this way, we can continue to modify the code on the designer, modify the UI, and then click the "Update" button and "enter" button to see the development of the effect of real-time. Go to this app to complete all the features you need to achieve.

Single-step debugging is not currently supported. Currently support Alert,toast mode debugging and Deviceone.print debugging. Where print debugging can display the printed data in real time in the designer's debug log, but you need to ensure that the debug terminal's "Display log" check is selected.


Publish Application

After application development through the cloud of packaging services can be a formal installation package, have their own icon, name, signature, etc., you can upload the official App Store, you can download the use of the end users. Just click on the "Build single" button in the designer and install the package on the download page.


To be Continue ...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.