Debugging web apps on Android

As we mentioned at the end of the last section, debugging/logging will be critical for us when we start writing new code. If you have ever tried to fix an issue blind without a log or ability to debug, then you will quickly appreciate the value of a good debugger. As it so happens, Chrome has a great set of tools that will help us do just that. Work through the following steps to set up remote web debugging on your Android device:

  1. Connect your device to your computer with a USB.
  2. Open Command Prompt window.
  3. Validate your connection by entering this:
adb devices
  1. The output of that command should show your connected device. You may be able to get away with bypassing this step, but you can avoid plenty of frustration later by just running this simple check.
  2. Ensure that all instances of the Chrome browser on your Android device are shut down.
  3. Open an instance of the WebARCore browser. Remember that this browser is just an experimental extension of Chrome.
  4. Using the open browser, navigate to one of the samples. It really doesn't matter which just yet. This example will use spawn-at-camera.html.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.113.150