| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 /// Programmatically trigger breakpoints. | |
| 6 library dart.debugger; | |
| 7 | |
| 8 /// Programmatically trigger breakpoints. | |
| 9 class Debugger { | |
| 10 /// Stop the program as if a breakpoint where hit at the following statement. | |
| 11 /// NOTE: When invoked, the isolate will not return until a debugger | |
| 12 /// continues execution. When running in the Dart VM the behaviour is the same | |
| 13 /// regardless of whether or not a debugger is connected. When compiled to | |
| 14 /// JavaScript, this uses the "debugger" statement, and behaves exactly as | |
| 15 /// that does. | |
| 16 external static void breakHere(); | |
| 17 | |
| 18 /// If [expr] is true, stop the program as if a breakpoint where hit at the | |
| 19 /// following statement. See [breakHere]. | |
| 20 external static void breakHereIf(bool expr); | |
| 21 } | |
| OLD | NEW |