OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug --asyn
c_debugger | 4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug --asyn
c_debugger |
5 | 5 |
6 import 'dart:async'; | |
7 import 'dart:developer'; | 6 import 'dart:developer'; |
8 import 'package:observatory/models.dart' as M; | 7 |
9 import 'package:observatory/service_io.dart'; | |
10 import 'package:unittest/unittest.dart'; | |
11 import 'service_test_common.dart'; | 8 import 'service_test_common.dart'; |
12 import 'test_helper.dart'; | 9 import 'test_helper.dart'; |
13 | 10 |
14 const LINE_A = 23; | 11 const LINE_A = 20; |
15 const LINE_B = 24; | 12 const LINE_B = 21; |
16 const LINE_C = 30; | 13 const LINE_C = 27; |
17 const LINE_D = 32; | 14 const LINE_D = 29; |
18 const LINE_E = 35; | 15 const LINE_E = 32; |
19 const LINE_F = 38; | 16 const LINE_F = 35; |
20 const LINE_G = 40; | 17 const LINE_G = 37; |
21 | 18 |
22 helper() async { | 19 helper() async { |
23 print('helper'); // LINE_A. | 20 print('helper'); // LINE_A. |
24 throw 'a'; // LINE_B. | 21 throw 'a'; // LINE_B. |
25 return null; | 22 return null; |
26 } | 23 } |
27 | 24 |
28 testMain() async { | 25 testMain() async { |
29 debugger(); | 26 debugger(); |
30 print('mmmmm'); // LINE_C. | 27 print('mmmmm'); // LINE_C. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 stepOver, | 61 stepOver, |
65 hasStoppedAtBreakpoint, | 62 hasStoppedAtBreakpoint, |
66 stoppedAtLine(LINE_F), // print(foo) | 63 stoppedAtLine(LINE_F), // print(foo) |
67 stepOver, | 64 stepOver, |
68 hasStoppedAtBreakpoint, | 65 hasStoppedAtBreakpoint, |
69 stoppedAtLine(LINE_G), // print(z) | 66 stoppedAtLine(LINE_G), // print(z) |
70 resumeIsolate | 67 resumeIsolate |
71 ]; | 68 ]; |
72 | 69 |
73 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); | 70 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); |
OLD | NEW |