Debugging requires no changes to your program code. It requires that your project is associated with the JCLDEMO Enterprise Server and that the Enterprise Server is configured to enable dynamic debugging, which you performed in the previous steps.
For example, in JCLRead.cbl, set a breakpoint on the line for OPEN INPUT INFILE. In JCLCreate.cbl. set a breakpoint for the line for OPEN OUTPUT OUTFILE.
This starts the JCLDEMO server and also prompts you to confirm the switch to the Debug perspective. Click Yes to switch to the Debug perspecive.
Notice the messages that have appeared in the Console.
The debugger offers you a number of choices when specifying what you want to debug. You may choose a Job Name, a Job Number, a Step Name or the top-level program on the JCL Debugging type options in the debug configuration.
These choices enable you to perform remote debugging, to support multiple users debugging on the same region.
In this tutorial you’re running Enterprise Server locally and no one else is connecting to it, so you do not need to specify any options and the debugger debugs any debuggable program that it finds.