Rational Developer for System z

Debugging the local project

Linux icon Rational® Developer for System z® does not support local debug on the Linux platform.

To begin using the local COBOL debugger, do these steps:
  1. In the z/OS Projects view, select LocalSampleProject and then from the menu bar, click Run > Debug. The Debug Configurations window opens.
  2. From the list on the left of the Debug Configurations window, double-click Compiled Application.
  3. 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
  4. Click Apply, then Debug The command window and the Confirm Perspective Switch window open.
  5. Click Yes to switch to the Debug perspective. The Debug perspective opens with StartApp.cbl open in the debugger editor.
  6. Scroll down to the line that says "Move 1 to Char-count".
  7. To create a breakpoint (indicated by a green circle), double-click the grey bar to the left of that line.
  8. To run the program until the breakpoint, click the Resume icon Resume icon on the toolbar of the Debug view.
  9. Switch back to the command window, which should now display output.
  10. Type a name, press Enter, and return to the workbench.
  11. In the Variables view, expand PROGRAM-OTHER-FIELDS.
  12. Select INPUT-NAME.
  13. Change the string in the Value column to "YOU", including quotation marks.
  14. Click the Resume icon again.
  15. Switch to the command window in which the output is displayed; the output should include the string "YOU".
  16. To end the COBOL program, type Q, press Enter, then switch back to the workbench and click the icon.

Terms of use | Feedback

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