Support for debugging w/ pipenv interpreter running inside a docker container

Steps to reproduce:

  1. Create Python project inside a docker compose container that is run with pipenv
  2. Attempt to run tests or debug using PyCharm

Is this currently possible, or have I missed something?

0
3 comments

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

0
Avatar
Permanently deleted user

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 ?

0

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

0

Please sign in to leave a comment.