The Debugging Process
The following are the basic steps for debugging an EMUE script using the EMUE debugger. The actual debugging process will vary greatly depending on the script and its complexity.
• | Activate the debugger using one of the methods noted at the beginning of this section. |
• | Using the debugger related tabs, evaluate the current state of the CICS screen, variables, call stack, and lists and compare them to the planned/expected behavior of the script. |
o | View the variable values on the Variables Tab. |
o | View the contents of lists on the Lists Tab. |
o | View the script file on the Script Tab. |
o | View the current line of the input file on the Input File Tab. |
o | View the call stack on the Call Stack Tab. |
• | Use breakpoints and the Step button to step through the script if appropriate. |
• | Manually redirect script execution to a new line by: |
o | Right Clicking on a script line and selecting "Make this current script line". |
o | Holding Ctrl and clicking a script line |
o | Holding Ctrl and pressing F11 |
o | Holding Alt and pressing the up or down arrows.
|
Note: Be sure to test the execution of the script from start to finish without any debugger interruptions to insure that it works as expected.
• | Edit the script as appropriate. Be sure to save the script periodically. |
• | To access the help page for a given command, highlight the command in the script and press the F1 key. |
|