You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Launch.json attributes section of the VSCode documentation mentions that the env atttribute of a launch configuration supports unsetting variables by using the null value.
This doesn't seem to work for Python launch configurations:
it doesn't undefine variables when running a program
an error dialog is shown when debugging a program (or test in my case):
Invalid message: "env"["ELECTRON_RUN_AS_NODE"] must be str
Environment data
VS Code version: 1.48.2
Extension version (available under the Extensions sidebar): 2020.8.105045
OS and version: macOS High Sierra 10.13.6
Python version (& distribution if applicable, e.g. Anaconda): CPython 3.8.3
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Value of the python.languageServer setting: (User) Microsoft
The text was updated successfully, but these errors were encountered:
Thanks for the clarification. I asked because I don't get the Invalid message: "env"["ELECTRON_RUN_AS_NODE"] must be str error when running (no debug).
I had a go at implementing this, but I didn't get far, unfortunately...
The Launch.json attributes section of the VSCode documentation mentions that the
env
atttribute of a launch configuration supports unsetting variables by using thenull
value.This doesn't seem to work for Python launch configurations:
Environment data
python.languageServer
setting: (User) MicrosoftThe text was updated successfully, but these errors were encountered: