Walks you through the process of modifying your application in
Eclipse, and then debugging it using the
Eclipse debugger.
Set breakpoints
Before starting the debugger, set a breakpoint to stop program execution before exiting the console so you can see the output.
- In the program editor,
double-click in the left-most column on line 8, which reads:
DO loop = 1 TO 10 BY 1;
A dot appears in the column to indicate the breakpoint.
- Now,
double-click in the left-most column on the last line of the program, which reads:
end HelloPLIWorld;
Again, a dot appears in the column to indicate the breakpoint.
Debug HelloWorld.pli
Enterprise Developer uses the
Eclipse debugger to debug PL/I applications.
- In the PL/I Explorer view, select the
HelloPLIWorld.pli program.
- From the main menu, select
Run > Debug.
Note: If prompted to switch perspective, click
Switch.
- Press
F5 (Step Into) to start stepping through the code.
The first line in the program executes and the cursor moves to the next line in the code.
- Open the
Expressions view.
- Click the
+ in it and type
SourceString as you are going to monitor this variable during debugging.
- Click
OK.
- Press
F5 again.
This executes the statement that initializes the value for SourceString.
- Step through the next few lines in the same way and see how the value of the
SourceString variable changes in the
Expressions view.
- Press
F8 to continue to the next breakpoint.
- Press
F8 again to exit the program.
Debugging stops.
This completes the tutorial.