Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2118)

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java

Issue 11142018: svn merge -c 13655 bleeding_edge trunk (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/tools/VERSION » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java (revision 13655)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/configs/DartServerLaunchConfigurationDelegate.java (working copy)
@@ -17,7 +17,6 @@
import com.google.dart.tools.core.model.DartSdkManager;
import com.google.dart.tools.debug.core.DartDebugCorePlugin;
import com.google.dart.tools.debug.core.DartLaunchConfigWrapper;
-import com.google.dart.tools.debug.core.server.ServerDebugTarget;
import com.google.dart.tools.debug.core.util.NetUtils;
import org.eclipse.core.resources.IResource;
@@ -115,9 +114,11 @@
commandsList.add(vmExecPath);
commandsList.addAll(Arrays.asList(launchConfig.getVmArgumentsAsArray()));
- if (enableDebugging && !DartCore.isWindows()) {
- commandsList.add("--debug:" + connectionPort);
- }
+ // BUG(5883) Debugging of standalone programs is disabled
+ // because it sometimes leads to program crashes.
+// if (enableDebugging && !DartCore.isWindows()) {
+// commandsList.add("--debug:" + connectionPort);
+// }
String packageRoot = DartCore.getPlugin().getPackageRootPref();
if (packageRoot != null) {
@@ -176,21 +177,23 @@
eclipseProcess.setAttribute(IProcess.ATTR_CMDLINE, generateCommandLine(commands));
- if (enableDebugging && !DartCore.isWindows()) {
- ServerDebugTarget debugTarget = new ServerDebugTarget(launch, eclipseProcess, connectionPort);
+ // BUG(5883) Debugging of standalone programs is disabled
+ // because it sometimes leads to program crashes.
+// if (enableDebugging && !DartCore.isWindows()) {
+// ServerDebugTarget debugTarget = new ServerDebugTarget(launch, eclipseProcess, connectionPort);
+//
+// try {
+// debugTarget.connect();
+//
+// launch.addDebugTarget(debugTarget);
+// } catch (DebugException ex) {
+// // We don't throw an exception if the process died before we could connect.
+// if (!isProcessDead(runtimeProcess)) {
+// throw ex;
+// }
+// }
+// }
- try {
- debugTarget.connect();
-
- launch.addDebugTarget(debugTarget);
- } catch (DebugException ex) {
- // We don't throw an exception if the process died before we could connect.
- if (!isProcessDead(runtimeProcess)) {
- throw ex;
- }
- }
- }
-
monitor.done();
}
« no previous file with comments | « no previous file | dart/tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698