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

Unified Diff: runtime/vm/object.cc

Issue 1191133002: UI for setting/clearing closure-specific breakpoints. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « runtime/vm/debugger.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 8e8c18b0d747d9af7cf226aa75e811b88289070c..88802f36c21615825e4f9633767472c81503d68a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -14372,6 +14372,13 @@ void Instance::PrintJSONImpl(JSONStream* stream, bool ref) const {
if (ref) {
return;
}
+ if (IsClosure()) {
+ Debugger* debugger = Isolate::Current()->debugger();
+ Breakpoint* bpt = debugger->BreakpointAtActivation(*this);
+ if (bpt != NULL) {
+ jsobj.AddProperty("_activationBreakpoint", bpt);
+ }
+ }
}
« no previous file with comments | « runtime/vm/debugger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698