Allow the use of environmental variables for setting port in launch.json for Node debugging #192014
Labels
debug
Debug viewlet, configurations, breakpoints, adapter issues
feature-request
Request for new features or functionality
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
When trying to debug multiple (Node + Docker) services at the same time, I've started using environment variables for a more flexible setup when creating a complete dev environment which is not bound to a hard-coded config (example: hostname+port, as defined in launch.json).
Similar to https://github.com/microsoft/vscode-python/issues/18841 and https://github.com/microsoft/vscode-java-debug/issues/962 I'd like to use environment variables to set "port" and "hostname". Using environment variables to set different values within the launch.json configuration would be extremely useful for creating dynamic configs for developers on the team (this would allow us to change some parts of our dev environment without having to change tracked code - in this case launch.json; the same variable is also used within docker-compose.yml when defining a forwarded debug port) - even a way to turn off (or override) validation for types within launch.json (in general, not just for this Node configuration) would help a lot.
Example configuration:
gives the following validation error:
Incorrect type. Expected "number".
even though the evaluated variable is a number.Allowing the use of environmental variables (or even allowing numbers as string) for setting port would help a lot.
The text was updated successfully, but these errors were encountered: