Bug 462785: [otdre][debug] automatically select weaver when launching
- initialize weavingMode also in mode "run"
diff --git a/plugins/org.eclipse.objectteams.otdt.debug.adaptor/src/org/eclipse/objectteams/otdt/internal/debug/adaptor/launching/PDELaunchingAdaptor.java b/plugins/org.eclipse.objectteams.otdt.debug.adaptor/src/org/eclipse/objectteams/otdt/internal/debug/adaptor/launching/PDELaunchingAdaptor.java
index 57fb1d3..52b9e7b 100644
--- a/plugins/org.eclipse.objectteams.otdt.debug.adaptor/src/org/eclipse/objectteams/otdt/internal/debug/adaptor/launching/PDELaunchingAdaptor.java
+++ b/plugins/org.eclipse.objectteams.otdt.debug.adaptor/src/org/eclipse/objectteams/otdt/internal/debug/adaptor/launching/PDELaunchingAdaptor.java
@@ -162,10 +162,11 @@
 		void prepareLaunch(ILaunchConfiguration configuration, String mode) throws DebugException
 		{
 			this.mode = mode;
-			if (isOTLaunch(configuration) && ILaunchManager.DEBUG_MODE.equals(mode))
+			if (isOTLaunch(configuration))
 				try {
 					IProject[] projects = getProjectsForProblemSearch(configuration, mode);
-					PDELaunchingAdaptor.installOOTBreakpoints(projects);
+					if (ILaunchManager.DEBUG_MODE.equals(mode))
+						PDELaunchingAdaptor.installOOTBreakpoints(projects);
 					determineWeavingMode(projects);
 				} catch (DebugException dex) {
 					throw dex;