コンテナーですでに実行されている .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. デバッグするアプリケーションがネイティブ COBOL の場合は、[Connection type] フィールドで、[Micro Focus transport] を指定します。

    デバッグするアプリケーションが.NET COBOL の場合は、[Connection type] フィールドで、specify Remote (no authentication) (if you invoked the remote debugger (msvsmon.exe) with the "/noauth" flag) or Default (if you are using authentication).

  4. [Connection target] フィールドで、次のように指定します。
    ID/IP-address:port[:32|:64]

    詳細は次のとおりです。

    ID/IP-address
    コンテナーの ID または IP アドレスです。
    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.
    :32|:64
    オプションで、コンテナーが 32 ビット環境と 64 ビット環境のどちらで実行されているかを示します。このパラメーターが指定されていない場合、デフォルトでは 64 ビットになります。
  5. [Show processes from all users] をオンにします。
  6. [Refresh] をクリックすると、Enterprise Developer によって、接続可能なすべてのプロセスがリストされます。
  7. デバッグ対象のプロセスをリストから選択します。
  8. [Attach] をクリックします。

    実行中のコンテナーにデバッガーがアタッチされ、通常どおりにデバッグが開始されます。デバッガーがブレークポイントに達するか、エラーが発生するか、ユーザーがブレーク ボタンを押すまで、実行は停止しないことに注意してください。