While debugging a particular file on python, I came a scenario where I required to activate the python environment right after we start debugging.
By default, VS code starts PowerShell terminal.
Below is the modification required in launch.json file
By default, VS code starts PowerShell terminal.
Below is the modification required in launch.json file
{"name": "Python: Current File","type": "python","request": "launch","program": "${file}","env": {"PATH":"${workspaceFolder}/venv/Scripts/"},"console": "integratedTerminal","justMyCode": true,"autoReload": {"enable": true}}
Let's Think on it
No comments:
Post a Comment