To use CBL_DEBUGBREAK for debugging with Enterprise Server running under your user ID

  1. Open the Windows Control Panel and select Services; how you do this differs between Windows operating systems. These instructions apply to Windows NT 4.0.
  2. Stop the Directory Server, so that you can restart it under your user ID: select the service Micro Focus Directory Server and click Stop.
  3. Click Startup...
  4. In the Log On As group, check This Account and enter your user ID, and your password in both Password and Confirm Password. Click OK.
  5. Start the Directory Server: select the service Micro Focus Directory Server and click Start.
  6. Click Tools > Enterprise Server Administration. This brings up the Home page of Enterprise Server Administration.
  7. Start the enterprise server.

    To start an enterprise server

    You won't see the console window because the enterprise server is running under your user ID, which means that it cannot interact with the desktop.

  8. In the Net Express IDE, open the project containing the program you want to debug as a service.
  9. Click the source file for the program in the left-hand pane of the project view.
  10. Insert the following statement immediately after the entry point for the service:
    call "CBL_DEBUGBREAK"
    .
  11. Close the program and rebuild the project.
  12. Deploy the service or application to the server, or if you have already deployed it, redeploy it (this involves deleting the deployed service):

    Note: Please make sure to include the .idy files for the application in the set of files that you deploy.

  13. If your program is a service (Web Service or J2EE), as opposed to a CICS or JCL application, you will need to create a client program to submit requests for that service.

    To generate a COBOL client from a Web service interface

  14. In the Net Express IDE, click Animate > Settings, then click Wait for animatable attachment. Click OK.
  15. Click Animate > Start animating, and in the Start Animating dialog box clear the field Executable or Program name, and click OK.
  16. Start the service or application on your enterprise server. How you do this depends on what type of application it is.

    For example:

  17. When the CBL_DEBUGBREAK statement in the deployed service is encountered, the first Net Express IDE starts debugging the program.
  18. You can now step through the deployed service in the usual manner.

Notes:

Related Topics: