Index: runtime/observatory/tests/service/async_step_test.dart |
diff --git a/runtime/observatory/tests/service/async_step_test.dart b/runtime/observatory/tests/service/async_step_test.dart |
index 59a0a7e80f861d92928a1fb47c4ae0a4476a3e6d..3ccbbe0ca8da28b5ea4af62dc38c988f93fed4cb 100644 |
--- a/runtime/observatory/tests/service/async_step_test.dart |
+++ b/runtime/observatory/tests/service/async_step_test.dart |
@@ -28,23 +28,29 @@ testMain() { |
asyncStep(Isolate isolate) async { |
var event = isolate.pauseEvent; |
+ print("Pause event is $event"); |
expect(event, isNotNull); |
// 1. Set breakpoint for the continuation and resume the isolate. |
Instance continuation = event.asyncContinuation; |
print("Async continuation is $continuation"); |
+ if (continuation == null) { |
+ print(await isolate.getStack()); |
+ } |
expect(continuation.isClosure, isTrue); |
var bpt = await isolate.addBreakOnActivation(continuation); |
- expect(bpt is Breakpoint, isTrue); |
print("Async step to $bpt"); |
+ expect(bpt is Breakpoint, isTrue); |
await isolate.resume(); |
await hasStoppedAtBreakpoint(isolate); |
+ print("Big step to: ${isolate.pauseEvent}"); |
// 2. Step past the state-machine dispatch. |
await isolate.stepOver(); |
await hasStoppedAtBreakpoint(isolate); |
+ print("Small step to: ${isolate.pauseEvent}"); |
} |
var tests = [ |