File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
adapter/src/main/kotlin/org/javacs/ktda Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -98,15 +98,15 @@ class KotlinDebugAdapter(
98
98
val mainClass = (args[" mainClass" ] as ? String )
99
99
? : throw missingRequestArgument(" launch" , " mainClass" )
100
100
101
- val vmArguments: String? = (args[" vmArguments" ] as ? String )
101
+ val vmArguments = (args[" vmArguments" ] as ? String ) ? : " "
102
102
103
103
setupCommonInitializationParams(args)
104
104
105
105
val config = LaunchConfiguration (
106
106
debugClassPathResolver(listOf (projectRoot)).classpathOrEmpty,
107
107
mainClass,
108
108
projectRoot,
109
- vmArguments ? : " "
109
+ vmArguments
110
110
)
111
111
debuggee = launcher.launch(
112
112
config,
Original file line number Diff line number Diff line change @@ -83,8 +83,7 @@ class JDILauncher(
83
83
.collect(Collectors .toSet())
84
84
85
85
private fun formatOptions (config : LaunchConfiguration ): String {
86
- var options = " "
87
- options + = config.vmArguments
86
+ var options = config.vmArguments
88
87
modulePaths?.let { options + = " --module-path \" $modulePaths \" " }
89
88
options + = " -classpath \" ${formatClasspath(config)} \" "
90
89
return options
You can’t perform that action at this time.
0 commit comments