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 input and output 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 and Output Record, 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.
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.