I'm using VS Code's debugger to launch a Django app. I created the virtual env using python3 -m virtualenv venv
and it's shown below in the place I'd like to have it. I've checked the VS Code Django and debugging tutorials but I am no closer to an answer than I was when I started.
vscode ➜ /workspaces/docker-test-proj $ ls -l
total 0
drwxr-xr-x 8 vscode vscode 256 Apr 6 14:30 helloworld
vscode ➜ /workspaces/docker-test-proj/helloworld $ ls -l
total 136
drwxr-xr-x 11 vscode vscode 352 Apr 6 13:24 app
-rw-r--r-- 1 vscode vscode 131072 Apr 6 13:42 db.sqlite3
drwxr-xr-x 8 vscode vscode 256 Apr 6 13:21 helloworld
-rwxr-xr-x 1 vscode vscode 666 Apr 6 13:19 manage.py
-rw-r--r-- 1 vscode vscode 175 Apr 6 14:30 requirements.txt
drwxr-xr-x 6 vscode vscode 192 Apr 6 13:20 venv
Where do I need to put the source venv/bin/activate
command in my launch.json file below to have it run when starting the VSCode debugger?
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/helloworld/manage.py",
"args": [
"runserver",
],
"django": true
},
]
}