The previous answers were setting the var globally for all applications.
To make this setting exist only during a debug session...
in VS, you can set debugging env vars by:
- right-click on your startup project
- select :Properties"
- Go to the "Debugging" property page
- Add your var to the "Environment" property in the form varName=val. Multiple vars can be defined with one var=val pair per line.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…