Ionic Series--Introduction of several debugging methods

Source: Internet
Author: User

first, the problem arises

Recently I found that before the development and normal ionic can be used in Google browser debugging, but if added Ng-cordova these features debugging is very troublesome, I need to pack the APK, install the APK, error does not know where, and then modify the code, package apk, install APK , this is too troublesome, the friends in the group provide a way to debug Ng-cordova These plugins, I write down as a record.

second, the website with the phone debugging

1, deploy the project to the server and publish, (preferably outside the network)

There is another way (recommended)

With ionic serve local build environment so-called remote address is actually your computer address, mobile phone and computer again the same network segment can, so do not have to build a site, modify the code can change immediately. (but this machine's localhost with the data line connection whether can recognize, after work I did not experiment)


2. Change the configuration in the local project to the index page on the server


3. Pack the Android apk file and install to the phone.

4. Open the following function in the browser


5, open the mobile phone developer mode, the phone with the data cable connected to the computer, start the application, you can debug. If there are errors can directly modify the server code, continue to click on the phone function debugging.

Line break

Line break



6, debugging finished, modify the index of the configuration file back, package The local apk, publish the application.



But unfortunately, I did not debug through, AVD environment I also did not pass, feel good sad ah, but we can try, after all, someone tuned.


third, other debugging methods

1, Android AVD this thing my computer does not debug pass.

2, Karma This tool is free to try

3, a friend said with eclipse inside can run, not very clear this method, back to try


















Ionic Series--Introduction of several debugging methods

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.