In this tutorial I will show you how to debug Intel XDK apps while running it in emulator or real device. It doesn’t matter what kind of app you are building, debugging is always necessary.
Debugging while app is running in emulator
Intel XDK provides a built in debugger for debugging apps while its running in emulator. You can access it by clicking on the spider button on top left of emulate tab.
Debugging while app is running in real device
There are two ways to run a Intel XDK app in real device i.e., Intel App Preview or app binary installed.
In both bases Intel XDK provides an remote debugger to debug the app while its running in real device. This remote debugger is actually Intel’s integrated weinre remote debugger.
To use this debugger switch to Test tab in Intel XDK IDE and then below you will find a
<script> tag, copy and paste it in
<head> tag of your app source code. Now click on the Begin Debugging Session button to launch the debugger and start listening to new debugging session. Then run your app.