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
This is an enhance requirement.
When configuring the debug in launch.json for launch mode. And envFile option will be helpful instead of key in all the env variables.
envFile option has been supported in c#, python, nodejs... debuggers.
Reacted by Lawrence Gripper, Deo Kim, Troy Spencer, River News, gary, fxam, soriyath, jahan01, David Benlloch, jonathan schatz and 5 more
.env is commonly used for storing envs esp. for credentials. If specified in env instead of envFile, the credentials are uploaded to GitHut along with launch.json. That's risky and inconvenient.
Reacted by Deo Kim, River News, soriyath, Von Court, jahan01, Hao Luo and Paulo Mu
Activity
[-][Feature request]envFile option for debugger in launch mode[/-][+]envFile option for debugger in launch mode[/+]wpcfan commentedon Apr 9, 2019
Yes, this feature is needed, we use .env for docker-compose and I hope we could reuse the file when debugging in VSCode
Eskibear commentedon Jul 25, 2019
.envis commonly used for storing envs esp. for credentials. If specified inenvinstead ofenvFile, the credentials are uploaded to GitHut along withlaunch.json. That's risky and inconvenient.Implement envFile (Issue #523) (#928)