Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ protected void handleTerminatedEvent(IDebugAdapterContext context) {
*/
public static String[] constructLaunchCommands(LaunchArguments launchArguments, boolean serverMode, String address) {
String slash = System.getProperty("file.separator");

List<String> launchCmds = new ArrayList<>();
if (launchArguments.launcherScript != null) {
launchCmds.add(launchArguments.launcherScript);
}
final String javaHome = StringUtils.isNotEmpty(DebugSettings.getCurrent().javaHome) ? DebugSettings.getCurrent().javaHome
: System.getProperty("java.home");
launchCmds.add(javaHome + slash + "bin" + slash + "java");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ public static class LaunchArguments extends LaunchBaseArguments {
public Map<String, String> env;
public boolean stopOnEntry;
public boolean noDebug = false;
public CONSOLE console = CONSOLE.internalConsole;
public CONSOLE console = CONSOLE.integratedTerminal;
public ShortenApproach shortenCommandLine = ShortenApproach.NONE;
public String launcherScript;
}

public static class AttachArguments extends LaunchBaseArguments {
Expand Down