Before you begin, you must complete Exercise 5.1: Introducing the Integrated iSeries Debugger.
You will be working with the COBOL program PAYROLLD.
You can start the Debugger in several ways: directly from the pop-up menu of a program or service program in the Remote Systems view, or from a Launch Configurations window. Starting directly from the Remote Systems view doesn't allow you to specify parameters to be passed to the program. The Launch Configurations window allows you to modify how the program is invoked and to specify parameters.
To make the exercise interesting you will use CL program CLC1 to call PAYROLLD and you will pass one parameter to CLC1.
This means you will use the Launch Configurations window.
To start the debugger:
The Debug Launch Configurations window opens.
The right pane of the Debug Launch Configurations window opens.
The How To Start page opens.
By default, the page contains a call for the program selected in the Remote Systems view.
The Call Program (CALL) window opens.
The parameter value will appear in the lower list.
If you forget to click Add, the parameter will be missing from the CALL Program command and you will receive an error when the program tries to call the payroll program.
The complete start command for the program appears.
The Debug perspective opens.
If not, you may see this error message.
The Remote System Explorer communications server has been shut down in the meantime. Go to your 5250 emulator and restart the Remote System Explorer communications server following the instructions in the message. You don't have to cancel the message. It will be removed as soon as the connection between the Remote System Explorer communications server and the interactive session has been established. Now the Debug perspective is loaded in the workbench.
Now that the program is active on the iSeries and stopped at the first
executable statement, the debugger displays the source.
You have started an interactive debug session and now you are ready to begin Exercise 5.3: Setting breakpoints.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.