| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 4 |
| 5 // This test forks a second vm process that runs this dart script as | 5 // This test forks a second vm process that runs this dart script as |
| 6 // a debug target. | 6 // a debug target. |
| 7 // Run this test with option --wire to see the json messages sent | 7 // Run this test with option --wire to see the json messages sent |
| 8 // between the processes. | 8 // between the processes. |
| 9 // Run this test with option --verbose to see the stdout and stderr output | 9 // Run this test with option --verbose to see the stdout and stderr output |
| 10 // of the debug target process. | 10 // of the debug target process. |
| 11 | 11 |
| 12 import "package:expect/expect.dart"; | |
| 13 import "debug_lib.dart"; | 12 import "debug_lib.dart"; |
| 14 | 13 |
| 15 bar(x) { | 14 bar(x) { |
| 16 print(x); | 15 print(x); |
| 17 } | 16 } |
| 18 | 17 |
| 19 foo(i) { | 18 foo(i) { |
| 20 bar("baz"); | 19 bar("baz"); |
| 21 print(i); | 20 print(i); |
| 22 } | 21 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 MatchFrame(0, "main"), // Top frame in trace is function "main". | 34 MatchFrame(0, "main"), // Top frame in trace is function "main". |
| 36 Step(), | 35 Step(), |
| 37 Breakpoint(function: "main"), | 36 Breakpoint(function: "main"), |
| 38 SetBreakpoint(15), // Set breakpoint a line 15, in function bar. | 37 SetBreakpoint(15), // Set breakpoint a line 15, in function bar. |
| 39 Resume(), | 38 Resume(), |
| 40 Breakpoint(function: "bar"), | 39 Breakpoint(function: "bar"), |
| 41 MatchFrames(["bar", "foo", "main"]), | 40 MatchFrames(["bar", "foo", "main"]), |
| 42 MatchFrame(1, "foo"), | 41 MatchFrame(1, "foo"), |
| 43 Resume(), | 42 Resume(), |
| 44 ]; | 43 ]; |
| OLD | NEW |