-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
VS Code debugger should be able to use an external file for environment setup #14523
Comments
@mariosant loading from a file would be in addition to the existing "env" attribute and not a replacement, right? So you could load some env vars from a file and add more variables to that in the launch.json. |
That is correct, @weinand. Loading from env file, should add to current environment. It should not replace it. Loading vars from a file and adding more variables to launch.json, would be awesome! |
Is it necessary to support loading multiple env files or is one typically enough? |
Most cases, a single Ruby users typically use: https://github.com/bkeepers/dotenv to handle it. Not very sure about other ones :) |
@roblourens fyi, another feature for node-debug2 |
@mariosant you can now use an attribute |
This is great to hear! I will surely check it out @weinand. |
@weinand This functionality is also needed for Thanks |
@ancashoria please create a new issue against tasks for this. |
Issue:
I am looking for ways to load a
.env
file into debugger environment.launch.json
provides anenv
section, where you can define such variables. In typical use cases,launch.json
is being version controlled though, forbidding adding sensitive data, such as api keys.Expectation:
It would be really helpful, if there was a syntax like the following example:
Not sure where to mention that, this is a FEATURE REQUEST.
The text was updated successfully, but these errors were encountered: