When you start debugging, the Debug perspective is displayed, with the views useful for debugging. The default views are listed below; you can display them by clicking Window > Show View.
You can set a breakpoint or watchpoint by double clicking in the margin of the code view.You can create a program breakpoint for any program in the workspace by clicking Run > Add Program Breakpoint, or clicking the icon in the Breakpoints view, and entering the name of the file.
During a debug session, you can add a data item to this view by selecting it in the code view, right-clicking and choosing Inspect item and then choosing Add to Expressions.
You can also add an arbitrary expression in the view by clicking Add new expression or in the Expressions view. The added expression can be any string, but to be evaluated it needs to be a valid expression.
The supported expressions are: normal numeric arithmetic expression with intrinsic functions and the single use of alphanumeric intrinsic functions. For example, if you have the following variables defined:
01 a pic 999 value 2. 01 b pic xxxx comp-x value 3. 01 xyz value "abc".
You can use expressions of the type:
a + b * 1 a + function max(10,20) function upper-case(xyz) 1 + 10 function hex-of(b)
The following expressions are not supported - logical operators such as b-and and b-or; ISO2002 user defined methods; inline method invokes, and intrinsic functions which are evaluated at compile time.
For native OO COBOL: Shows all the local data items and parameters and the SELF item (containing all fields).
You can change values of the variables in this view. Select a variable from the list, right-click and select Change Value. A dialog box is displayed.