Debugging in a Transaction Processing Environment

You can debug your program from within a transaction processing environment, as long as this capability is supported by the vendor of that environment. Refer to your vendor's documentation for details.

Use the following acuthin command-line syntax from your Windows machine:

acuthin --wait [--port nnnn]

where nnnn is the desired port number. When this option is used, the thin client waits for the transaction server to start the runtime, after which you can debug your application in the runtime debugger screen.

In this mode, the acuthin command has an additional option, --restart. With this option, the thin client restarts itself after each debug session, so if a transaction requires multiple COBOL programs to run, you can debug all of them. To terminate the thin client after your debugging session, use the Windows Task Manager.

On UNIX servers, an environment variable setting is required before the transaction server can start the runtime. A_DEBUG_USING_THIN must be set to a nonzero numeric value for debugging on thin client in transaction processing to occur. No additional environment settings are required for Windows servers.

Information about transaction processing environments can be found in "Working with Transaction Processing Systems" in A Guide to Interoperating with ACUCOBOL-GT.