Index: tests/standalone/debugger/debug_lib.dart |
diff --git a/tests/standalone/debugger/debug_lib.dart b/tests/standalone/debugger/debug_lib.dart |
index bc1f24640a9805fe1cfb2eadf400c38b5fe8598e..eb6050ee8520ebd7b67167d07b8c5c9da9f7fe42 100644 |
--- a/tests/standalone/debugger/debug_lib.dart |
+++ b/tests/standalone/debugger/debug_lib.dart |
@@ -458,11 +458,16 @@ class Debugger { |
}, |
onError: (e) { |
print("Error '$e' detected in input stream from debug target"); |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) print("StackTrace: $trace"); |
close(killDebugee: true); |
}); |
}, |
- onError: (asyncErr) { |
- error("Error while connecting to debugee: $asyncErr"); |
+ onError: (e) { |
+ String msg = "Error while connecting to debugee: $e"; |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) msg += "\nStackTrace: $trace"; |
+ error(msg); |
close(killDebugee: true); |
}); |
} |
@@ -518,6 +523,8 @@ bool RunScript(List script) { |
onError: (e) { |
if (++retries >= 3) { |
print('unable to find unused port: $e'); |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) print("StackTrace: $trace"); |
return -1; |
} else { |
// Retry with another random port. |