Index: runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
diff --git a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
index 0e6b5eee23715a924c6ef5c27c435b569381f46d..5aaf56ec2853c63aacde914dc65a18f1e77d0b80 100644 |
--- a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
+++ b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart |
@@ -15,26 +15,32 @@ void testMain() { |
var tests = [ |
(Isolate isolate) async { |
+ print('Getting stream...'); |
Completer completer = new Completer(); |
var stream = await isolate.vm.getEventStream(VM.kDebugStream); |
+ print('Subscribing...'); |
var subscription; |
subscription = stream.listen((ServiceEvent event) { |
if (event.kind == ServiceEvent.kPauseStart) { |
- print('Received PauseStart'); |
+ print('Received $event'); |
subscription.cancel(); |
completer.complete(); |
+ } else { |
+ print('Ignoring event $event'); |
} |
}); |
+ print('Subscribed. Pause event is ${isolate.pauseEvent}'); |
if (isolate.pauseEvent != null && |
isolate.pauseEvent.kind == ServiceEvent.kPauseStart) { |
// Wait for the isolate to hit PauseStart. |
subscription.cancel(); |
- print('subscription cancelled.'); |
+ print('Subscription cancelled.'); |
} else { |
- print('waiting for pause start event.'); |
+ print('Waiting for pause start event.'); |
await completer.future; |
} |
+ print('Done waiting for pause event.'); |
// Grab the timestamp. |
var pausetime1 = isolate.pauseEvent.timestamp; |