I am able to run an application through PyCharm's Docker Compose run configuration, but I am unable to debug the app.
See the tutorial:
I have a project that has several containers, each running its own service. I followed the tutorial, but I set environment variables in the Run configuration. Additionally, the `docker-compose.yml` file starts a container each for `db`, `redis`, and `nginx` (as a proxy web server), and several other services that talk to one another, say `s1`, `s2`, etc. I can get the project to start all the services and run it just fine through PyCharm.
I created a Pyramid run configuration and tried to start it, but the debug says that the service is already running and exits.
I also tried creating a `docker-compose-dev.yml` file that would start all the necessary services in the proper order, but the debugger would still exit.
- Will the debugger honor environment variables?
- Do I need to stop the application first, then run the debugger to bring up all the necessary services?
- Pyramid uses an entry point, for example, `pserve development.ini --reload` to start the service/container in question. Does this prevent the debugger from working as expected?
I've scoured the PyCharm issue tracker, Stack Overflow, and this community without any luck.