Skip to content

Commit 04151ac

Browse files
committed
Add a launch mode check before prepareStopInMain() call
1 parent 146197e commit 04151ac

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaLaunchDelegate.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2021 IBM Corporation and others.
2+
* Copyright (c) 2000, 2026 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -22,6 +22,7 @@
2222
import org.eclipse.debug.core.DebugPlugin;
2323
import org.eclipse.debug.core.ILaunch;
2424
import org.eclipse.debug.core.ILaunchConfiguration;
25+
import org.eclipse.debug.core.ILaunchManager;
2526
import org.eclipse.jdt.core.IJavaProject;
2627
import org.eclipse.jdt.core.IModuleDescription;
2728
import org.eclipse.jdt.internal.launching.LaunchingMessages;
@@ -162,8 +163,9 @@ public void launch(ILaunchConfiguration configuration, String mode, ILaunch laun
162163
return;
163164
}
164165
// stop in main
165-
prepareStopInMain(configuration);
166-
166+
if (mode == ILaunchManager.DEBUG_MODE) {
167+
prepareStopInMain(configuration);
168+
}
167169
// done the verification phase
168170
monitor.worked(1);
169171

0 commit comments

Comments
 (0)