To begin using the local COBOL debugger, do these steps:
- In the z/OS® Projects view,
double-click StartApp.cbl.
- When StartApp.cbl is displayed, scroll down to the line that says
"Move 1 to Char-count".
- To create a breakpoint (indicated by a green circle), double-click
the grey bar to the left of that line.
- From the menu bar, click Run > Debug.
- From the list on the left of the Create, manage, and run configurations
dialog, double-click Compiled Application.
- Complete the fields on the right of the dialog as shown in the
following table.
| Field Name |
Value |
| Name |
LocalSampleProject |
| Project |
LocalSampleProject |
| Program Name |
workspace/LocalSampleProject/BuildOutput/StartApp.exe Note: The
variable workspace refers to the fully qualified
path of the Rational® Developer
for System z® workspace
on your workstation.
|
| Program parameters |
not applicable |
- Click Apply, then Debug The command window opens.
- To run the program until the breakpoint, switch to the workbench
and click the triangle-shaped Resume icon on the toolbar of
the Debug view.
- Switch back to the command window, which should now display output.
- Type a name, press Enter, and return to the workbench.
- In the Variables view, expand PROGRAM-OTHER-FIELDS.
- Double-click INPUT-NAME.
- Change the string to "YOU", including quotation marks.
- Click the triangle-shaped Resume icon again.
- Switch to the command window in which the output is displayed;
the output should include the string "YOU".
- To end the COBOL program, type Q, press Enter, then switch
back to the workbench and click the triangle-shaped Resume icon.