[PYTHON] Debug settings in virtual environment when using Pipenv with VS Code
Overview
Debug settings in development using Pipenv with VS Code.
If it is not set, you probably cannot debug in virtual.
So, I will introduce the settings that can use the debug function even in virtual (it has a strong meaning as a memorandum of my own)
- Assuming a Mac environment.
Setting
-
- Open VS Code Preferences
- Enter "python.venvPath" in the settings search
-
- Enter the virtual environment path in Venv Path
3.1. Enter "pipe nv --venv" in the console
3.2. Enter the displayed virtual environment path in Venv Path Example "/Users/hogetaro/.local/share/virtualenvs"
Reference image