- Open the application's solution in
Visual COBOL.
If you are working with one of the Docker demonstrations, they include the relevant solution and project files.
- [デバッグ > プロセスにアタッチ] をクリックします。
- デバッグするアプリケーションがネイティブ 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).
- [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 ビットになります。
- [Show processes from all users] をオンにします。
- [Refresh] をクリックして、Visual COBOL で接続可能なすべてのプロセスをリストします。
- デバッグ対象のプロセスをリストから選択します。
- [Attach] をクリックします。
実行中のコンテナーにデバッガーがアタッチし、通常どおりにデバッグが開始されます。デバッガーがブレークポイントに達するか、エラーが発生するか、ユーザーがブレーク ボタンを押すまで、実行は停止しないことに注意してください。