Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
|
hausner
2015/05/05 00:16:27
2015
Cutch
2015/05/05 02:38:53
Done.
| |
| 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 /// Trigger a breakpoint. In other words, when invoked, the isolate will | |
| 11 /// not return until a debugger continues execution. The behaviour is the same | |
| 12 /// regardless of whether or not a debugger is connected. | |
| 13 static void breakpoint() { | |
| 14 print('Debugger.breakpoint not supported by your embedder.'); | |
|
hausner
2015/05/05 00:16:27
... by this embedder ... ?
or: on this platform
Cutch
2015/05/05 02:38:53
Done.
| |
| 15 } | |
| 16 | |
| 17 /// Call [breakpoint] if [expr] is true. | |
| 18 static void breakpointIf(bool expr) { | |
| 19 if (expr) { | |
| 20 breakpoint(); | |
| 21 } | |
| 22 } | |
| 23 } | |
| OLD | NEW |