The Intel® XDK provides multiple ways to debug and test your app. This topic provides a summary of the debugger and device preview/test features, and helps you choose which features to use based on your current development needs.
This topic explains why running an app in the device simulator differs from running it on actual device(s).
You can test your app on an actual device running Intel App Preview. Use the Test tab to push your app to Intel App Preview. Debugging can be accomplished, within App Preview, by using a local weinre server or, on Android devices, by using remote Chrome* DevTools*.
Install the weinre debug server directly onto your workstation by following the instructions in Using Node weinre to Debug Cordova* Apps and connecting your built app to that self-hosted weinre console or connecting your app as it runs within App Preview. For additional help on using weinre locally, watch Using WEINRE to Debug an Intel® XDK Cordova* App (beginning at about 14:30 in the video).
Using the Google* Chrome browser on your workstation with Chrome* DevTools running on your Android device (remote CDT) is a very powerful debugging environment. Using remote CDT, you can debug a built app as it runs directly on your device. Nearly 100 percent of the functionality of Chrome DevTools is available to you; it's as if you are debugging a browser app on your local workstation.
If you own a Mac* and an Apple* developer account, you can utilize Web Inspector in Safari* to remotely debug an iOS* Cordova app in a way that is analogous to using Remote Chrome* DevTools with an Android* device running a Cordova app. This process requires that you use a Mac and that your iOS device is attached to the Mac via a USB cable.
Debug Tab [RETIRED]
NOTE: As of December 12, 2016, the Intel® XDK Debug tab has been retired. You can no longer build debug modules with any version of the Intel XDK.
In addition, you can use weinre by installing a weinre server directly onto your development system. For additional help on using weinre locally, watch Using WEINRE to Debug an Intel® XDK Cordova* App (beginning at about 14:30 in the video).
window.location.reload() function. An example of using this technique can be seen in this video, starting at about 18:30. The video is demonstrating the use of the weinre debugger, but the debugging techniques can also be applied to remote CDT and remote Web Inspector when debugging a built app.
NOTE: Intel App Preview for Android is distributed with remote debug enabled. This means that you can use remote CDT to debug your app within App Preview using a USB connection, as long as you restrict your debugging efforts to only that code which interacts with the core Cordova plugins. App Preview does not support third-party plugins, only the "core" Cordova plugins; therefore, you cannot debug those parts of your app that interact with third-party Cordova plugin APIs within App Preview (this has always been a restriction of App Preview).