kotlin-debug-adapter
kotlin-debug-adapter copied to clipboard
feat: support cwd and env variable using sun jdi
An enhance for #39
Done
-
cwd
- Add "cwd" for
LaunchConfiguration
- default to ${projectRoot} if null or blank
- Add a custom
KDACommandLineLauncher
which implementsLaunchingConnector
- The implementation is in original code written in Kotlin
- Add unit test for cwd
- Add "cwd" for
-
env variables
- Add "envs" for
LaunchConfiguration
- Change "envs" config from
List<String>
toMap<String, String>
style for more friendly user experience - Add unit test for envs
- Add "envs" for
-
support for jdk1.8
-
support for jdk11
-
SunCommandLineLauncher
cannot be extended under jdk11, soKDACommandLineLauncher
implementsLaunchingConnector
directly -
SocketTransportService
cannot be constructed under jdk11, so it is newed by Class.forName
-
Linked pullreq
- Add cwd / envs support in vscode-kotlin https://github.com/fwcd/vscode-kotlin/pull/42
any update on this? what needs to be done to get this merged?
@fwcd Thank you for the advices, I will update this PR