Debug the SQL COBOL Application

Guides you through the process of setting a break point, and debugging the application in Eclipse.

Add a break point

The program sends output to the console, and you want the application to pause at a point where you can see the output.

  1. In the COBOL Editor, scroll down to the following statement:
    EXEC SQL DISCONNECT CURRENT END-EXEC
  2. Click the statement.
  3. In the gray area to the left of the statement, double click to toggle a break point.

Debug the application

  1. Click Run > Debug to start debugging.
    Note: If prompted to switch to the Debug perspective, click Switch.
  2. Select either Step Into (F5, Step Into) or Step Over (F6, Step Over) to execute statements until you get to your break point.
  3. If the console is not visible, minimize the Eclipse IDE. You should see the console output.
  4. Click Step Over (F6, Step Over) to complete the debugging process.

This concludes the tutorial.