Skip to content

VS Code debugger should be able to use an external file for environment setup #14523

Closed
@mariosant

Description

@mariosant

Issue:
I am looking for ways to load a .env file into debugger environment.

launch.json provides an env 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:

"env" : "${workspaceRoot}.env"

Not sure where to mention that, this is a FEATURE REQUEST.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions