Double-click the Data Calculator JavaScript component, or click the Rule icon in the Property window.
Select a row in the Transformation Rule column and click the Edit icon.
The JavaScript Editor and Debugger window includes:
Navigator – consists of the Variables tab and the JavaScript tab. The Variable tab consists of IN-port and OUT-port variables, temporary, and predefined variables. The JavaScript tab includes all functions, commands, and system variables that can be applied within the procedure.
Edit/Debug pane – lets you edit the actual code.
These tabs appear at the bottom of the window:
Tasks – displays the results of the validation after your procedure has been compiled.
Watch List – displays selected variables and their values when stepping through the code during debugging.
Input Records – displays the content of the current input record. To synchronize input records and output records, click the Start debugging icon on the toolbar.
Output Record – displays the content of the current output record.
Expression – displays the result of the expression after you enter a JavaScript expression and click Evaluate on the toolbar.
The Evaluate button is disabled when you are not in an active debugging session.
When launched, the JavaScript Editor and Debugger opens in edit mode. To switch to the debug mode, select Debug | Start.
A dark grey background of the edit area indicates the debug mode. To switch to edit mode, click the “Stop debugging and start editing” icon on the toolbar.