Support for debugging w/ pipenv interpreter running inside a docker container
Steps to reproduce:
- Create Python project inside a docker compose container that is run with pipenv
- Attempt to run tests or debug using PyCharm
Is this currently possible, or have I missed something?
Please sign in to leave a comment.
Hi,
The project should reside locally. Having a project inside a docker container is not supported.
But PyCharm supports Docker https://www.jetbrains.com/help/pycharm/using-docker-as-a-remote-interpreter.html and docker compose interpreters https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html
thanks Sergey Karpov, do you think there might still be a way to make it work, perhaps by treating docker as a remote machine https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html ?
You can configure it as an SSH interpreter, but it still requires your project files to be stored on the local machine. PyCharm doesn't support fully remote development yet https://youtrack.jetbrains.com/issue/IDEA-226455