DEV Community

Discussion on: How to Debug Docker Containers (Python + VSCode)

Collapse
 
yeorj profile image
George Alfaro • Edited

You're correct. I believe he uses venv for non-containerized development to keep his python packages tidy; it's good practice. Sometimes you want to hack around straight on your machine and not run a container since it can be a lot simpler to test a new feature or debug without dealing with containers.

Collapse
 
sidpalas profile image
sidpalas

Exactly! In the video, I am comparing how the test cases behave differently inside vs outside the container. The virtual environment is to handle the packages running directly on my host system.

Thread Thread
 
mono-ne profile image
Rodolfo González Romero

Pyenv is also a good alternative locally, it allows you to work with multiple python versions