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

  1. Open the application's solution in Enterprise Developer.

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

  2. [デバッグ > プロセスにアタッチ] をクリックします。
  3. デバッグするアプリケーションがネイティブ COBOL の場合は、[Connection type] フィールドで、[Micro Focus transport] を指定します。

    デバッグするアプリケーションがマネージ 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
    コンテナーがリッスンしているポート番号です。 たとえば、「Running a Container that is to be Debugged」の docker run コマンドで起動したコンテナーの場合は 6100 になります。
    :32|:64
    コンテナーが 32 ビット環境と 64 ビット環境のどちらで実行されているかを示すオプションです。このパラメーターが指定されていない場合、デフォルトでは 64 ビットになります。
  5. [Show processes from all users] をオンにします。
  6. [Refresh] をクリックして、Enterprise Developer で接続可能なすべてのプロセスをリストします。
  7. デバッグ対象のプロセスをリストから選択します。
  8. [Attach] をクリックします。

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