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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1232193003: Provide stdout and stderr output in the Observatory debugger. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: before commit Created 5 years, 5 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
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index c25d7dbad205f0674c76eb6250952885aee8fb49..c17db626d72d35f26b2ac664c6aa88403b6b487a 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -697,6 +697,8 @@ abstract class VM extends ServiceObjectOwner {
static const kIsolateStream = 'Isolate';
static const kDebugStream = 'Debug';
static const kGCStream = 'GC';
+ static const kStdoutStream = 'Stdout';
+ static const kStderrStream = 'Stderr';
static const _kGraphStream = '_Graph';
/// Returns a single-subscription Stream object for a VM event stream.
@@ -1625,6 +1627,7 @@ class ServiceEvent extends ServiceObject {
@observable int count;
@observable String reason;
@observable String exceptions;
+ @observable String bytesAsString;
int chunkIndex, chunkCount, nodeCount;
@observable bool get isPauseEvent {
@@ -1680,6 +1683,10 @@ class ServiceEvent extends ServiceObject {
map['_debuggerSettings']['_exceptions'] != null) {
exceptions = map['_debuggerSettings']['_exceptions'];
}
+ if (map['bytes'] != null) {
+ var bytes = decodeBase64(map['bytes']);
+ bytesAsString = UTF8.decode(bytes);
+ }
}
String toString() {
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.html ('k') | runtime/observatory/tests/service/capture_stdio_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698