注: 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 Application] をダブルクリックします。
- Change the name from
New_configuration to something relevant to your application.
- [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 になります。
- [Main Program] セクションで、以下を行います。
- [Program is part of project build configuration] をオフにします。
- 下のフィールドで、コンテナーの Docker 作業ディレクトリで実行するアプリケーションを指定します。
たとえば、「デバッグ対象のコンテナーの実行」に示されている docker run コマンドで起動したコンテナーの場合は、次のように指定します。
c:\app\exe-name.exe
- 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] をクリックします。