To start debugging a COBOL application that is not yet running in a container

  1. Open the application's project in Visual COBOL.

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

  2. Create a new debug configuration:
    1. Click Run > Debug configurations.
    2. In the left side pane of the Debug Configurations dialog box double-click COBOL 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. Check Specify the port on which the cobdebugremote process will listen on the remote host.
      3. In the cobdebugremote port field, specify the port that the container is listening on. This would be 6100 for the container that would have been started by the docker run command in Running a Container that is to be Debugged.
    5. In the Main Program section:
      1. Uncheck Program is part of project build configuration.
      2. In the field below, specify the application to be run in the container's Docker working directory.

        For example, for the container that would have been started by the docker run command in Running a Container that is to be Debugged you would specify the following:

        c:\app\exe-name.exe

    6. In the Debug Options section, ensure that the setting of Application is 64 bit reflects whether the application to be debugged is 32-bit or 64-bit.
  3. Click Debug.