Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

7.3.3 Debugging functions for data items

Data item values can be checked and changed with the debugger. This section explains debugging functions for data items.

Note

When a REPLACE statement or a COPY statement with a REPLACING phrase, DISJOINING phrase, or JOINING phrase is described in the source program, the source program before string replacement is displayed. In order to reference, change, or monitor the value of the data item to be replaced, specify the data item name after replacing.

7.3.3.1 Referencing the value of a data item

This section explains methods that can be used to reference a data item value.

Displaying the value in a tooltip

When the mouse cursor is positioned on a data item displayed in the COBOL editor, a tooltip appears with the value of the data item.

Using the Watch view

The value of a data item and more detailed information on it can be referenced by adding the data item to the "Watch" view. For details on the "Watch" view, see "7.2.3 Watch view."

7.3.3.2 Changing the value of a data item

This section explains the methods that can be used to change the value of a data item added to the "Watch" view.

Changing a data item in automatic format

To change the value of a data item in automatic format:

  1. In the "Watch" view, select the data item whose value is to be changed.

  2. Select "Change Value" from the context menu.

  3. Enter the replacement value for the current value in the "Set Value" dialog box, and click the "OK" button.

Changing a data item in hexadecimal format

Follow the procedure below to change the value of a data item in hexadecimal format.

  1. In the "Watch" view, select the data item whose value is to be changed.

  2. Select "Change Hex Value" from the context menu.

  3. Enter the replacement value for the current value in the "Set Value" dialog box, and click the "OK" button.

7.3.3.3 Monitoring changes in the values of data items

Data items can be monitored so that execution of the program can be halted when the value of a data item is changed.

Use either of the following methods to specify whether to halt execution of the program when such a value is changed:

7.3.3.4 Notes