Your COBOL development system provides a debugging environment, which is sensitive to COBOL and includes all the usual features such as stepping, watch windows and breakpoints.
Note: Certain features described in this section only apply to native COBOL.
When you debug an application, the source code of each program is displayed in a separate window. Each line of the source is highlighted in turn as each statement is executed, showing the effect of each statement. You can execute the program at full speed and can interrupt execution to examine and change data items.
The features available while debugging include:
- Running all or part of the program, and stepping through the program one statement at a time
- Executing the program until it reaches a specified point, such as the end of a procedure or a breakpoint that you specify
- Skipping statements you do not want to execute, such as a procedure call and the corresponding procedure.
- Examining and manipulating data items while debugging
There are a number of ways to debug code, such as compiling the source yourself first or letting it happen automatically or making available the necessary files created during an earlier compilation. For example you can:
- Automatically start debugging when the application fails
- Debug non-COBOL programs in mixed language applications
- Debug services and applications that are running on a local or a remote enterprise server
You control the way debugging works by
setting options on the
Debug page of the project's properties and in the option pages which you can access from
.