To validate JavaScript code, select Debug | Start. The result of the validation appears in the Tasks tab
The JavaScript Editor and Debugger offers efficient features to trace the execution of a script. You can step through a code line-by-line or step through from one breakpoint to another. You can check the current value of a variable at any time.
A comment line starts with two forward slashes // at the beginning of the line.
The JavaScript Editor and Debugger works without input data at the IN-port of the component. However, for best results, populate the IN-port with data before using the debugging features.
Validate the script or switch to the debug mode.
A green arrow, pointing initially to line 1, indicates the progress of the execution while stepping.
Make sure the result message in the Task tab displays “Successful compilation.”
To move to the next line, click the Step icon on the toolbar.
At any point during stepping you can inspect the variable name and the current value. To do so, select the variable in the Navigator and right-click.
Instead of stepping through the procedure line-by-line, you can include breakpoints at selected lines.
Click the line where you want to set or remove a breakpoint.
Right-click and select Add/Remove breakpoint.
Click the Go icon on the toolbar for each step.
Click the Go icon on the last breakpoint to execute the rest of the script.