a65067fb9d
While reviewing logs for flaky DAP tests, I found that these tests have been failing sometimes with errors that look like the isolate might not have paused on the `debugger()` call yet: ``` evaluateInFrame: (113) Expression compilation error _buildExpressionEvaluationScope: invalid 'frameIndex' parameter: 0 ``` and ``` evaluateInFrame: (113) Expression compilation error org-dartlang-debug:synthetic_debug_expression:1:1: Error: Undefined name 'myInstance'. myInstance ^^^^^^^^^^ ``` This waits for the isolate to be paused, not just runnable, which I think might fix this. Change-Id: Ib1d6b1c44a7ef93452065aa43c4d05058914db28 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395302 Reviewed-by: Derek Xu <derekx@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>