Starting to Debug a JVM COBOL Application in a Container

Note: This topic does not apply if you are using Enterprise Developer UNIX Components.
Note: This topic only applies to using JVM COBOL applications in containers. To use native COBOL applications in containers you need to use the functionality described in Debugging and Running Native COBOL Applications in Containers.

Once your Enterprise Developer Build Tools for Windows base image is running and you have found out its ID or IP address you are ready to use Enterprise Developer to connect to the container using java remote debugging.

If you have followed the steps outlined in Building a JVM COBOL Application that is to be Debugged in a Container, Running a Container that is to be Debugged and Finding the Details of a Container that is to be Debugged you will have a container that isn't yet running your JVM COBOL application but is waiting for you to connect to it using Enterprise Developer.

  1. Open the application's project in Enterprise Developer.

    If you are working with one of the container demonstrations, they include the relevant project files.

  2. Set a breakpoint on the line where you want execution to pause when you connect to the application.
  3. Create a new debug configuration:
    1. Click Run > Debug configurations.
    2. In the left side pane of the Debug Configurations dialog box double-click Remote Java Application.
    3. Change the name from New_configuration to something relevant to your application.
    4. In the Connection Properties section:
      1. Specify the IP address of the container in the Remote Host field.
        Note: You can specify the container's ID instead of its IP address.
      2. In the Port field, specify the port that the container is listening on. This would be 8000 for the container that would have been started by the docker run command in Running a Container that is to be Debugged.
  4. Click Debug.