注: This topic does not apply if you are using Enterprise Developer UNIX Components.
- Open the application's project in
Enterprise Developer.
If you are working with one of the Docker demonstrations, they include the relevant project files.
- アプリケーションへの接続時に実行を一時停止する行にブレークポイントを設定します。
- 新しいデバッグ構成を作成します。
- Click
Run > Debug configurations.
- [Debug Configurations] ダイアログ ボックスの左側のペインで、[COBOL Attach to Process] をダブルクリックします。
- Change the name from
New_configuration to something relevant to your application.
- [COBOL Project] セクションで、デバッグ時に使用するプロジェクトの名前を指定します。
- [Connection Properties] セクションで、以下を行います。
- Specify the IP address of the container in the
Remote Host field.
注: You can specify the container's ID instead of its IP address.
- Check
Specify the port on which the cobdebugremote process will listen on the remote host.
- 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 になります。
- 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.
- [Debug] をクリックします。
- [Select Process] ダイアログ ボックスが表示されたら、デバッグするアプリケーションを選択し、デバッグが開始されるまで待ちます。