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

envFile config option #866

Closed
roamiiing opened this issue Feb 22, 2023 · 3 comments
Closed

envFile config option #866

roamiiing opened this issue Feb 22, 2023 · 3 comments
Labels
enhancement Enchancement request

Comments

@roamiiing
Copy link

Many popular debuggers (node, python, etc.) for VSCode support the envFile option. Also, it's mentioned in VSCode's docs.

Personally, I'd use this option to be able to debug my rust project which needs some API keys. I might use some rust libraries that load env variables from a file, but I think that the program itself should not be responsible for this.

Also, I'd be happy to implement it myself and open a PR. As far as I understand, this might be implemented by adding a dotenv dependency to package.json and using it to parse the file from the new envFile option. Then the env variables might be spread in the env dict:
https://github.com/vadimcn/vscode-lldb/blob/master/extension/main.ts#L178

Let me know if adding a new dependency to this project is appropriate. Also, are there any other places that depend on the env option?

Thanks!

@roamiiing roamiiing added the enhancement Enchancement request label Feb 22, 2023
@vadimcn
Copy link
Owner

vadimcn commented Feb 25, 2023

Yeah a PR would be nice. Please see the previous issue on this: #506.

@vadimcn
Copy link
Owner

vadimcn commented Apr 30, 2023

Implemented in v1.9.1

@vadimcn vadimcn closed this as completed Apr 30, 2023
@default-writer
Copy link

Implemented in v1.9.1
So cool! Thanks! i have to use getenv(..) in C bootstra GUI mode, because .env did not worked at all, maybe thing will change soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enchancement request
Projects
None yet
Development

No branches or pull requests

3 participants