The following table lists the context menu items used in the "Watch" view.
Menu item | Button | Description |
---|---|---|
Add Data Item... | Displays the Add Data Item dialog box used to add data items to the "Watch" view. | |
Change Value | - | Displays the Set Value dialog box used to change the values of the selected data items. |
Change Hex Value | - | Displays the Set Value dialog box used to change the values of the selected data items, where the values are specified in hexadecimal format. |
Suspend by Value Change | - | Specifies whether to halt execution of the program when the values of the selected data items are changed. |
Remove | Deletes the selected data item from the "Watch" view. | |
Remove All | Deletes all the data items from the "Watch" view. | |
Show Data Type | - | Specifies whether to display data types in the "Watch" view. |
Data items can be added to the "Watch" view by selecting Add Data Item from the context menu or toolbar.
Select "Add Data Item" from the context menu or toolbar. The "Add Data Item" dialog box appears.
Specify information such as data item names, a program name, and whether to halt execution when values are changed, and add the data items to the "Watch" view.
To add data items defined in methods of a class, specify "class-name:method-name" as the program name. A data item can be added to the "Watch" view by double-clicking the data item in the COBOL editor and then selecting "Add to Watch View" from the context menu.
item | Description |
---|---|
Data name | When adding data items for monitoring to the "Watch" view, specify identifier name as data name. One of the following is the identifier name.
For details, refer to "D.1 Identifier Name". |
Program name | Specify the program name. For details, "D.2 Program name". |
Suspend by Value Change | If this item is checked, when the value of the data changes, the program execution is stopped. |
Note
Data items can be added to the "Watch" view during debugging. First, start debugging of the program. Then, when execution of the program is halted, such as at a breakpoint, add data items to the "Watch" view.
Hexadecimal format or ASCII character format can be used as the data display format of the "Watch" view, or both formats can be used for data display as an added format.
To add or change a display format:
Select "Window" > "Preferences" from the menu bar. The "Preferences" dialog box appears.
Select "COBOL" > "Debug" in the left pane.
Select a display format from "Watch" view display options in the right pane, and then click the" OK" or" Apply" button.