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:
- Stop the ACCT enterprise server - in Server Explorer, right-click
ACCT in the list of servers, and then click
Stop.
- In the IDE, click
Tools > Options, expand
Micro Focus, and then click
Enterprise Server.
- Enable the checkboxes for the following options:
- Automatically start the associated server
- Automatically enable dynamic debugging
- Click
OK.
Set Project Properties for Debugging
- Select your project in Solution Explorer and click
Project > Properties
- Click the
Debug tab.
- Ensure
Choose Active Settings is set to
CICS.
- Type
ACCT in the
Transaction text box.
- Click
File > Save All.
Debug the ACCT Application
- 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
, and then clicking
COBOL.
- In your TN3270 emulator, run the ACCT application.
- Step through the application in the usual manner.
Stop Debugging
To stop debugging:
- To stop debugging, click
Debug > Stop Debugging.
- To stop the server, right-click
ACCT in Server Explorer, and click
Stop.