Using JS Debugger : 2012 and Later Emulators
This document explains how to use the JS Debugger with the 2012 and later Emulators
To learn about the 2010 and 2011 Emulators, please read Using JS Debugger: 2010 and 2011 Emulators.
To debug a project, select Samsung Smart TV SDK ‣ Debug Samsung Smart TV App using Web Inspector
If this option is disabled, make sure the project’s root folder is selected in the Project Explorer pane on the left
To remove a breakpoint, right-click on the breakpoint and select “Remove Breakpoint”.
The Continue feature is used to navigate to the next breakpoint if the control is halted at a breakpoint. If there are no further breakpoints, it causes the script to execute until the end. The figure below shows the program halted on line 27. To continue, click the Play button.
The execution is navigated to line 35 where the next breakpoint is.
The Step Over feature is used to go to the next line of code.
To step over:
- Select the Debug menu.
- Click the Step Over item. The program execution halts at the next line.
When you click Step Over, the execution point moves to the next line.
The Step Into feature is used to move into a function and halt on the next line.
To step into a function:
Click the Step Into item. The program execution moves to the function and halts on the next line.
The Step Out feature is used to finish running the current function and then halt in the calling function.
To step out:
Click the Step Out menu item. The program execution finishes the current function and halts in the calling function.