Debug the ACCT Transaction

Walks you through the steps required to set Enterprise Server options and create a debug configuration in Eclipse; then debug the ACCT transaction from Eclipse.

Create a debug configuration

  1. In Eclipse, click Run > Debug Configurations.
  2. Right-click COBOL Enterprise Server; then select New Configuration from the context menu.
  3. In the Name field, type ACCT Debug.
  4. Click Browse next to the COBOL Project field.
  5. Select the ACCT project; then click OK.
  6. In the Debugging type section, click Drop menu to the right of Type and select CICS, and then type ACCT into the Transaction field.
  7. Click Apply.
  8. Click Debug to start debugging the transaction.

    Based on the debug options set previously, this starts the ESACCT server automatically.

    Note:
    • If prompted to confirm a switch to the Debug perspective, click Yes.
    • If you see a Windows Security Alert blocking the Micro Focus Debugger Proxy V2, click Allow access to enable it.

Debug the transaction

  1. In Host Access for the Cloud, press Ctrl+F2 to clear the CICS login screen.
  2. Enter ACCT to execute the CICS transaction.

    In Eclipse, the debugger stops the execution of the process and positions the cursor in the Procedure Division of the ACCT00.cbl file.

  3. Step through the CICS transaction in the usual manner.
  4. To stop debugging, right-click the session in the Debug pane, and then click Terminate.

This concludes the tutorial.