コンテナーですでに実行されている 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. アプリケーションへの接続時に実行を一時停止する行にブレークポイントを設定します。
  3. 新しいデバッグ構成を作成します。
    1. Click Run > Debug configurations.
    2. [Debug Configurations] ダイアログ ボックスの左側のペインで、[COBOL Attach to Process] をダブルクリックします。
    3. Change the name from New_configuration to something relevant to your application.
    4. [COBOL Project] セクションで、デバッグ時に使用するプロジェクトの名前を指定します。
    5. [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 になります。
    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.
  4. [Debug] をクリックします。
  5. [Select Process] ダイアログ ボックスが表示されたら、デバッグするアプリケーションを選択し、デバッグが開始されるまで待ちます。