Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: sdk/lib/debugger/debugger.dart

Issue 1116263004: Add 'dart:debugger' library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/debugger/debugger_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/debugger/debugger.dart
diff --git a/sdk/lib/debugger/debugger.dart b/sdk/lib/debugger/debugger.dart
new file mode 100644
index 0000000000000000000000000000000000000000..33cf81b9e2f07e10f1947693a3715957dc1e77e7
--- /dev/null
+++ b/sdk/lib/debugger/debugger.dart
@@ -0,0 +1,23 @@
+// Copyright (c) 2015, 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.
+
+/// Programmatically trigger breakpoints.
+library dart.debugger;
+
+/// Programmatically trigger breakpoints.
+class Debugger {
+ /// Stop the program as if a breakpoint where hit at the following statement.
+ /// NOTE: When invoked, the isolate will not return until a debugger
+ /// continues execution. The behaviour is the same regardless of whether or
+ /// not a debugger is connected.
+ static void breakHere() {
+ print('Debugger.breakHere not supported on this platform.');
+ }
+
+ /// If [expr] is true, stop the program as if a breakpoint where hit at the
+ /// following statement.
+ static void breakHereIf(bool expr) {
+ print('Debugger.breakHereIf not supported on this platform.');
+ }
+}
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/debugger/debugger_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698