Previous Topic Next topic Print topic


Debug the CICS Application

You can start debugging your CICS application by using the Enterprise Server Dynamic Debugging facility, which enables you to debug a service on a local or remote enterprise server.

Note: When you have finished debugging, you must stop the debugger before you stop the enterprise server. This stops all the active transactions and ensures the enterprise server stops cleanly.

Configure the Enterprise Server for Dynamic Debugging

The IDE includes settings for configuring the Enterprise Server behavior which means you can specify whether to automatically enable dynamic debugging in the enterprise servers associated with projects you are going to debug:

  1. Stop the ACCT enterprise server - in Server Explorer, right-click ACCT in the list of servers, and then click Stop.
  2. In the IDE, click Tools > Options, expand Micro Focus, and then click Enterprise Server.
  3. Enable the checkboxes for the following options:
    • Automatically start the associated server
    • Automatically enable dynamic debugging
  4. Click OK.

Set Project Properties for Debugging

  1. Select your project in Solution Explorer and click Project > Properties
  2. Click the Debug tab.
  3. Ensure Choose Active Settings is set to CICS.
  4. Type ACCT in the Transaction text box.
  5. Click File > Save All.

Debug the ACCT Application

  1. Click Debug > Start Debugging.

    As you configured the ACCT server to start automatically, this starts the server and also starts the TN3270 Mainframe display of choice and loads the application in it.

    Note: If the embedded Rumba TN3270 Mainframe display is your preferred choice but is not displayed when debugging starts, click on the debug toolbar to open it.

    If you need to configure the TN3270 debugging section before you start debugging, by clicking Debug > Options and Settings, and then clicking COBOL.

  2. In your TN3270 emulator, run the ACCT application.
  3. Step through the application in the usual manner.

Stop Debugging

To stop debugging:

  1. To stop debugging, click Debug > Stop Debugging.
  2. To stop the server, right-click ACCT in Server Explorer, and click Stop.
Previous Topic Next topic Print topic