| 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 /// Interact with developer tools such as the debugger and inspector. | 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. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 /// that does. | 30 /// that does. |
| 31 external bool debugger({bool when: true, String message}); | 31 external bool debugger({bool when: true, String message}); |
| 32 | 32 |
| 33 /// Send a reference to [object] to any attached debuggers. | 33 /// Send a reference to [object] to any attached debuggers. |
| 34 /// | 34 /// |
| 35 /// Debuggers may open an inspector on the object. Returns the argument. | 35 /// Debuggers may open an inspector on the object. Returns the argument. |
| 36 external Object inspect(Object object); | 36 external Object inspect(Object object); |
| 37 | 37 |
| 38 /// Emit a log event. | 38 /// Emit a log event. |
| 39 /// [message] is the log message. | 39 /// [message] is the log message. |
| 40 /// [time] (optional) is the timestamp. | 40 /// [time] (optional) is the timestamp. |
| 41 /// [sequenceNumber] (optional) is a monotonically increasing sequence number. | 41 /// [sequenceNumber] (optional) is a monotonically increasing sequence number. |
| 42 /// [level] (optional) is the severity level (value between 0 and 2000). | 42 /// [level] (optional) is the severity level (value between 0 and 2000). |
| 43 /// [name] (optional) is the name of the source of the log message. | 43 /// [name] (optional) is the name of the source of the log message. |
| 44 /// [zone] (optional) the zone where the log was emitted | 44 /// [zone] (optional) the zone where the log was emitted |
| 45 /// [error] (optional) an error object associated with this log event. | 45 /// [error] (optional) an error object associated with this log event. |
| 46 /// [stackTrace] (optional) a stack trace associated with this log event. | 46 /// [stackTrace] (optional) a stack trace associated with this log event. |
| 47 external void log(String message, | 47 external void log(String message, |
| 48 {DateTime time, | 48 {DateTime time, |
| 49 int sequenceNumber, | 49 int sequenceNumber, |
| 50 int level: 0, | 50 int level: 0, |
| 51 String name: '', | 51 String name: '', |
| 52 Zone zone, | 52 Zone zone, |
| 53 Object error, | 53 Object error, |
| 54 StackTrace stackTrace}); | 54 StackTrace stackTrace}); |
| OLD | NEW |