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