| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 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 | 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 /// ## Status: Unstable | 5 /// Interact with developer tools such as the debugger and inspector. |
| 6 /// | 6 /// |
| 7 /// The dart:developer library is unstable and its API might change slightly | 7 /// The dart:developer library is _unstable_ and its API might change slightly |
| 8 /// as a result of developer feedback. This library is platform dependent and | 8 /// as a result of developer feedback. This library is platform dependent and |
| 9 /// therefore it has implementations for both dart2js and the Dart VM. Both are | 9 /// therefore it has implementations for both dart2js and the Dart VM. Both are |
| 10 /// under development and may not support all operations yet. | 10 /// under development and may not support all operations yet. |
| 11 /// | 11 /// |
| 12 library dart.developer; | 12 library dart.developer; |
| 13 | 13 |
| 14 import 'dart:convert'; | 14 import 'dart:convert'; |
| 15 | 15 |
| 16 part 'profiler.dart'; | 16 part 'profiler.dart'; |
| 17 | 17 |
| 18 /// If [when] is true, stop the program as if a breakpoint where hit at the | 18 /// If [when] is true, stop the program as if a breakpoint were hit at the |
| 19 /// following statement. Returns the value of [when]. Some debuggers may | 19 /// following statement. |
| 20 /// |
| 21 /// Returns the value of [when]. Some debuggers may |
| 20 /// display [msg]. | 22 /// display [msg]. |
| 23 /// |
| 21 /// NOTE: When invoked, the isolate will not return until a debugger | 24 /// NOTE: When invoked, the isolate will not return until a debugger |
| 22 /// continues execution. When running in the Dart VM the behaviour is the same | 25 /// continues execution. When running in the Dart VM the behaviour is the same |
| 23 /// regardless of whether or not a debugger is connected. When compiled to | 26 /// regardless of whether or not a debugger is connected. When compiled to |
| 24 /// JavaScript, this uses the "debugger" statement, and behaves exactly as | 27 /// JavaScript, this uses the "debugger" statement, and behaves exactly as |
| 25 /// that does. | 28 /// that does. |
| 26 external bool debugger({bool when: true, String msg}); | 29 external bool debugger({bool when: true, String msg}); |
| 27 | 30 |
| 28 /// Send a reference to [object] to any attached debuggers so they may open an | 31 /// Send a reference to [object] to any attached debuggers. |
| 29 /// inspector on the object. Returns the argument. | 32 /// |
| 33 /// Debuggers may open an inspector on the object. Returns the argument. |
| 30 external inspect(object); | 34 external inspect(object); |
| OLD | NEW |