Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: read environment variables from external file #15964

Closed
3 tasks done
weinand opened this issue Nov 23, 2016 · 0 comments
Closed
3 tasks done

Test: read environment variables from external file #15964

weinand opened this issue Nov 23, 2016 · 0 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Nov 23, 2016

Test for #14523:

Complexity: 2

The VS Code Node debugger now supports to load environment variables from a file and passes them to the node runtime.
To use this feature add an attribute envFile to your launch config and specify the absolute path to the file containing the environment variables:

   //...
   "envFile": "${workspaceRoot}/.env",
   "env": { "USER": "john doe" }
   //...

Any environment variable specified in env dictionary will override variables loaded from the file that have a matching name.

Example for env file:

USER=doe
PASSWORD=abc123

# a comment

# an empty value:
empty=

# new lines expanded in quoted strings:
lines="foo\nbar"

Verify that this feature works as specified.

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item labels Nov 23, 2016
@weinand weinand added this to the November 2016 milestone Nov 23, 2016
@weinand weinand self-assigned this Nov 23, 2016
@weinand weinand removed their assignment Dec 5, 2016
@bpasero bpasero removed their assignment Dec 6, 2016
@rebornix rebornix removed their assignment Dec 6, 2016
@ramya-rao-a ramya-rao-a removed their assignment Dec 6, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Projects
None yet
Development

No branches or pull requests

4 participants