| Index: runtime/observatory/tests/service/service_test_common.dart
|
| diff --git a/runtime/observatory/tests/service/service_test_common.dart b/runtime/observatory/tests/service/service_test_common.dart
|
| index 45e8b46c9e6248a00652859619c15422e28d0fa1..44d82f221d89653e2296deb8f866a880b5c3804d 100644
|
| --- a/runtime/observatory/tests/service/service_test_common.dart
|
| +++ b/runtime/observatory/tests/service/service_test_common.dart
|
| @@ -206,6 +206,24 @@ Future<Isolate> hasPausedAtStart(Isolate isolate) {
|
| return hasPausedFor(isolate, ServiceEvent.kPauseStart);
|
| }
|
|
|
| +Future<Isolate> markDartColonLibrariesDebuggable(Isolate isolate) async {
|
| + await isolate.reload();
|
| + for (Library lib in isolate.libraries) {
|
| + await lib.load();
|
| + if (lib.uri.startsWith('dart:') &&
|
| + !lib.uri.startsWith('dart:_')) {
|
| + var setDebugParams = {
|
| + 'libraryId': lib.id,
|
| + 'isDebuggable': true,
|
| + };
|
| + Map<String, dynamic> result =
|
| + await isolate.invokeRpcNoUpgrade('setLibraryDebuggable',
|
| + setDebugParams);
|
| + }
|
| + }
|
| + return isolate;
|
| +}
|
| +
|
| IsolateTest reloadSources([bool pause = false]) {
|
| return (Isolate isolate) async {
|
| Map<String, dynamic> params = <String, dynamic>{ };
|
|
|