Debug Code
Use the Debugger to find errors in the script.
Watch Window
Use the Watch window to monitor variable values while stepping through scripts.
The Watch window is accessible only in debugging mode. And, by default, the Watch window is not displayed. Use the menu to show/hide the Watch window.
Variable names can be typed in the first column or can be dragged and placed there from the Editor. Alternatively, they can be added by highlighting them in the Editor and selecting the context menu option Add Selection to Watch. The variable’s current value (or values) is displayed in the second column and its type is displayed in the third column. The value can be overwritten by typing a new value. The changed value is used next.

Figure 1.
Call Stack Window
The Call Stack window displays the paths traced while executing scripts.
The Call Stack window is accessible only in debugging mode. And, by default, the Call Stack window is not displayed. Use the to show/hide the Call Stack window.

Figure 2.
Breakpoints Window
The Breakpoints window displays all breakpoints in the debugging session. Each breakpoint is listed along with its host file and the line number.
The Breakpoints window is accessible only in debugging mode. And, by default, the Breakpoints window is not displayed. Use the to show/hide the Breakpoints window.

Figure 3.
Debug Scripts
Click the Debug icon to activate Debug mode.