コンテナーでまだ実行されていない COBOL アプリケーションのデバッグを開始するには

  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. 新しいデバッグ構成を作成します。
    1. Click Run > Debug configurations.
    2. [Debug Configurations] ダイアログ ボックスの左側のペインで、[COBOL Application] をダブルクリックします。
    3. Change the name from New_configuration to something relevant to your application.
    4. [Connection Properties] セクションで、以下を行います。
      1. Specify the IP address of the container in the Remote Host field.
        注: 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. たとえば、「Running a Container that is to be Debugged」の docker run コマンドで起動したコンテナーの場合は 6100 になります。
    5. [Main Program] セクションで、以下を行います。
      1. [Program is part of project build configuration] をオフにします。
      2. 下のフィールドで、コンテナーの Docker 作業ディレクトリで実行するアプリケーションを指定します。

        たとえば、「デバッグ対象のコンテナーの実行」に示されている docker run コマンドで起動したコンテナーの場合は、次のように指定します。

        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. [Debug] をクリックします。