Rational Developer for System z

Debugging the local project

To begin using the local COBOL debugger, do these steps:
  1. In the z/OS® Projects view, double-click StartApp.cbl.
  2. When StartApp.cbl is displayed, scroll down to the line that says "Move 1 to Char-count".
  3. To create a breakpoint (indicated by a green circle), double-click the grey bar to the left of that line.
  4. From the menu bar, click Run > Debug.
  5. From the list on the left of the Create, manage, and run configurations dialog, double-click Compiled Application.
  6. 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
  1. Click Apply, then Debug The command window opens.
  2. 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.
  3. Switch back to the command window, which should now display output.
  4. Type a name, press Enter, and return to the workbench.
  5. In the Variables view, expand PROGRAM-OTHER-FIELDS.
  6. Double-click INPUT-NAME.
  7. Change the string to "YOU", including quotation marks.
  8. Click the triangle-shaped Resume icon again.
  9. Switch to the command window in which the output is displayed; the output should include the string "YOU".
  10. To end the COBOL program, type Q, press Enter, then switch back to the workbench and click the triangle-shaped Resume icon.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)