eba45291fb
Change-Id: I80f1861b8dd1d1fa5eea93cc305fa0ee2475580d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101884 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Zach Anderson <zra@google.com> Auto-Submit: Kevin Moore <kevmoo@google.com>
46 lines
1001 B
Dart
46 lines
1001 B
Dart
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
// VMOptions=--verbose_debug
|
|
|
|
import 'dart:developer';
|
|
|
|
import 'package:observatory/service_io.dart';
|
|
|
|
import 'service_test_common.dart';
|
|
import 'test_helper.dart';
|
|
|
|
const int LINE_A = 21;
|
|
const int LINE_B = 16;
|
|
|
|
bar() {
|
|
print('bar');
|
|
}
|
|
|
|
testMain() {
|
|
debugger();
|
|
bar();
|
|
print("Done");
|
|
}
|
|
|
|
var tests = <IsolateTest>[
|
|
hasStoppedAtBreakpoint,
|
|
stoppedAtLine(LINE_A),
|
|
// Add breakpoint
|
|
setBreakpointAtLine(LINE_B),
|
|
// Evaluate 'bar()'
|
|
(Isolate isolate) async {
|
|
final lib = isolate.rootLibrary;
|
|
await lib.evaluate('bar()', disableBreakpoints: true);
|
|
},
|
|
hasStoppedAtBreakpoint,
|
|
stoppedAtLine(LINE_A),
|
|
resumeIsolate,
|
|
|
|
hasStoppedAtBreakpoint,
|
|
stoppedAtLine(LINE_B),
|
|
resumeIsolate,
|
|
];
|
|
|
|
main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
|