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(
9898 val mainClass = (args[" mainClass" ] as ? String )
9999 ? : throw missingRequestArgument(" launch" , " mainClass" )
100100
101- val vmArguments: String? = (args[" vmArguments" ] as ? String )
101+ val vmArguments = (args[" vmArguments" ] as ? String ) ? : " "
102102
103103 setupCommonInitializationParams(args)
104104
105105 val config = LaunchConfiguration (
106106 debugClassPathResolver(listOf (projectRoot)).classpathOrEmpty,
107107 mainClass,
108108 projectRoot,
109- vmArguments ? : " "
109+ vmArguments
110110 )
111111 debuggee = launcher.launch(
112112 config,
Original file line number Diff line number Diff line change @@ -83,8 +83,7 @@ class JDILauncher(
8383 .collect(Collectors .toSet())
8484
8585 private fun formatOptions (config : LaunchConfiguration ): String {
86- var options = " "
87- options + = config.vmArguments
86+ var options = config.vmArguments
8887 modulePaths?.let { options + = " --module-path \" $modulePaths \" " }
8988 options + = " -classpath \" ${formatClasspath(config)} \" "
9089 return options
You can’t perform that action at this time.
0 commit comments