-
Notifications
You must be signed in to change notification settings - Fork 410
Description
Description
I am limited in my java application debugging because I need to set a "multiline" value for an environment variable.
Multiline values are supported in other .env implementations like:
Describe the feature you'd like
I would be satisfied with multiline support offered by the dotenv library for .env files. This would greatly help debugging java applications.
It will look like this, where \n characters separate the lines.
SOME_PRIVATE_KEY="-----BEGIN ENCRYPTED PRIVATE KEY-----\nfoo=bar=\n-----END ENCRYPTED PRIVATE KEY-----\n"
Environment
Version: 1.61.0
Commit: ee8c7def80afc00dd6e593ef12f37756d8f504ea
Date: 2021-10-07T18:11:58.853Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 19.6.0
Name: Debugger for Java
Id: vscjava.vscode-java-debug
Description: A lightweight Java debugger for Visual Studio Code
Version: 0.36.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug
java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)
- Operating System: OSX
- JDK version: 11
- Visual Studio Code version:
- Java extension version:
- Java Debugger extension version:
Steps To Reproduce
- specify envFile in launch.json
- try to use double-quotes to surround the multiline value.
[attach a sample project reproducing the error]
attach logs
Current Result
Expected Result
Additional Informations
I noticed the implementation of readEnvFile was borrowed from another project, and that project also suffers from the problem, so I created a feature request on their board also.
microsoft/vscode-js-debug#1116