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

Unified Diff: tools/ddbg.dart

Issue 61153006: Add closure object type to debugger wire protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | « runtime/vm/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg.dart
===================================================================
--- tools/ddbg.dart (revision 30163)
+++ tools/ddbg.dart (working copy)
@@ -20,7 +20,7 @@
int isolate_id = -1;
final verbose = false;
-final printMessages = false;
+final printMessages = true;
// The location of the last paused event.
Map pausedLocation = null;
@@ -248,6 +248,14 @@
return "(list, id $id, len $len) $text";
} else if (kind == "object") {
return "(obj, id $id) $text";
+ } else if (kind == "function") {
+ var location = value['location'] != null
+ ? ", file '${value['location']['url']}'"
+ ", token pos ${value['location']['tokenOffset']}"
+ : "";
+ var name = value['name'];
+ var signature = value['signature'];
+ return "(closure ${name}${signature} $location)";
} else {
return "$text";
}
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698