I am trying to use Visual Studio Code with a virtual environment. In Launch JSON, I indicate that the sockets run as follows:
{ "name": "nosetests", "type": "python", "request": "launch", "stopOnEntry": true, "program": "${workspaceRoot}/env/dev/bin/nosetests", "args": [ "--nocapture", "tests" ], "externalConsole": false, "debugOptions": [ "WaitOnAbnormalExit", "WaitOnNormalExit" ] },
However, when I run the environment variables, they are not collected. I tried setting python path in workspace settings:
"python.pythonPath": "${workspaceRoot}/env/dev/bin/python"
but it does not seem to establish the correct environment. There must be something that "the source equivalent is activated. Has anyone understood this?"
python visual-studio-code nose
mikebz
source share