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

  1. In Server Explorer, right-click ACCT in the list of servers and then click Stop.
  2. Right-click Micro Focus Servers and then click Administration.
  3. On the Enterprise Server Administration home page, click Edit in the row for the ACCT server.
  4. Check Allow Dynamic Debugging and then click OK.
  5. Return to the Enterprise Server Administration home page.

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.

Associate Your Project with the Target Enterprise Server

  1. In Visual Studio, right-click Micro Focus Servers in Server Explorer and choose Refresh.
  2. In Server Explorer, right-click ACCT in the list of servers and then click Start. If this is the first time you have started the server you might see a sign-on dialog box. Select Store Credentials to skip this step in the future, and click OK to continue.
  3. Right-click ACCT in Server Explorer and choose Associate with project > ACCT.

Debug the ACCT Application

  1. Click Debug > Start Debugging.

    To start debugging you need to run the application.

  2. Run the ACCT transaction from your 3270 emulator.
  3. Step through the application in the usual manner.
  4. To stop debugging, click Debug > Stop Debugging.
  5. To stop the server, right-click ACCT in Server Explorer and click Stop.
Previous Topic Next topic Print topic