Debugging in a Desktop Browser

Debug the JavaScript code running in a deskstop browser.

This procedure shows how to debug using Chrome. See https://developers.google.com/chrome-developer-tools/. In some cases, debugging on the device is necessary, for example, when you debug touch, or code that includes JavaScript files from Apache Cordova or Kapsel, since these expect to run on a mobile device or simulator.

  1. In the Chrome menu, choose Tools > Developer Tools.
  2. Click Sources to open a source file.
  3. Set break points to step through the code.
  4. Use the Network tab to examine the OData URL sent and the values received.