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

Unified Diff: dart/sdk/lib/core/breakpoint.dart

Issue 204483002: Add 'breakpoint' similar to 'debugger' from JavaScript. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « dart/sdk/lib/_internal/lib/js_primitives.dart ('k') | dart/sdk/lib/core/core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/core/breakpoint.dart
diff --git a/dart/tests/language/deferred_constraints_lib.dart b/dart/sdk/lib/core/breakpoint.dart
similarity index 61%
copy from dart/tests/language/deferred_constraints_lib.dart
copy to dart/sdk/lib/core/breakpoint.dart
index 9f4d207ce6f24744420d888a98714677f5665668..0dfc4e8c90d5085668325aac83d1e44520044b6c 100644
--- a/dart/tests/language/deferred_constraints_lib.dart
+++ b/dart/sdk/lib/core/breakpoint.dart
@@ -2,14 +2,8 @@
// 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.
-class C {
- static int staticMethod() => 42;
-}
+part of dart.core;
-class G<T> {}
-
-class Const {
- const Const();
-}
-
-const constantInstance = const Const();
+/// Pause execution during debugging, a breakpoint.
Lasse Reichstein Nielsen 2014/03/20 08:25:39 What does it means to be "during debugging". I'm a
+/// Has no effect when not debugging.
+external void get breakpoint;
Lasse Reichstein Nielsen 2014/03/20 08:25:39 This is regrettably a breaking change (no pun inte
Lasse Reichstein Nielsen 2014/03/20 08:25:39 "external void get" is not allowed by the spec. Th
kevmoo 2014/03/20 16:34:46 DBC: Can we make this a method? break() or setBre
ahe 2014/03/20 16:50:47 Breakpoint is one word according to DevTools, and
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_primitives.dart ('k') | dart/sdk/lib/core/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698