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

注: The information in this topic applies to both native COBOL and .NET COBOL applications unless specifically indicated. If you want to use native COBOL in containers, however, Micro Focus recommends using the IDE-based functionality described in コンテナーでのネイティブ COBOL アプリケーションのデバッグおよび実行 as it offers an fully-integrated, easy-to-use debugging experience.
  1. Open the application's solution in Enterprise Developer.

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

  2. アプリケーションにブレークポイントが設定されていない場合は、必要に応じて、適切なポイントにブレークポイントを設定してから、変更を保存します。
  3. 次のように、コンテナー内で実行されているアプリケーションをデバッグするためのプロジェクトを構成します。
    1. [プロジェクト > プロパティ] をクリックしてプロジェクトのプロパティに移動します。
    2. [デバッグ] タブに移動します。
    3. [Launch] ドロップダウン リストから [Executable] を選択します。
    4. [Executable] フィールドで、コンテナーの Docker 作業ディレクトリで実行するアプリケーションを指定します。

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

      c:\app\exe-name.exe

    5. [Use remote machine] をオンにします。
    6. 隣接するフィールドで、コンテナーの ID または IP アドレスを指定します。
    7. [Port] フィールドで、コンテナーがリッスンしているポートを指定します。 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.
  4. [Debug > Start Debugging] をクリックします。

    実行中のコンテナーに Enterprise Developer が接続し、通常どおりにデバッグが開始されます。