Method One: Use chrome+ phone to debug.
1) Install Google's USB drive on your PC:
Http://developer.android.com/sdk/win-usb.html#top
2) Open the developer switch on the phone
3) Run the app on your phone (developed with Ionic or PhoneGap cross-platform scenarios. Need to be the development version, not the release version)
(Confirm that the phone and PC with USB cable connection, the first time the link, on the phone will pop up information, request Trust this PC)
4) on the PC, open Chrome browser and enter in the Address bar:
Chrome://inspect
You can see what's running so the app
Note:
* If you do not see, check whether the phone operating system Android 4.5 or above, the phone's USB drive is installed,
* * A simple way to install the driver is to install the "Kingsoft Phone assistant" such as mobile phone tools, it will automatically install the driver
Method Two: On the PC with chrome emulation to debug.
1) Open the app with Chrome
2) Press F12 to open the Debug interface
3) in the upper left corner of the debugging interface, click on the phone icon to enter the simulation status (note: Click it again to return to normal status)
At this point, the browser displays a black grid background.
4) in the top left-hand corner of the browser, select the device (including iphone and ipad) that needs to be emulated
Appendix:
* How to set up the first time for Android phone debugging?
1) How to open the "Developer Options" developer menu.
In the Settings>about phone, find the "build number" and click it 7 times in a row.
2) in the "Developer Options" (developer),
Turn on "USB Debug"
Mobile app Debugging (Android)