Rational® Developer
for System z® does not support
local debug on the Linux platform.
To begin using the local COBOL debugger, do these steps:
- In the z/OS Projects or Enterprise
Projects view,
select LocalSampleProject and then from the
menu bar, click Run > Debug. The Debug
Configurations window opens.
- From the list on the left of the Debug Configurations window,
double-click Compiled Application.
- Complete the fields on the right of the window 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 and the Confirm
Perspective Switch window open.
- Click Yes to switch to the Debug perspective.
The Debug perspective opens with StartApp.cbl open
in the debugger editor.
- 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.
- To run the program until the breakpoint, click the
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.
- Select INPUT-NAME.
- Change the string in the Value column to
"YOU", including quotation marks.
- Click the 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 icon.