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

Unified Diff: runtime/vm/isolate.cc

Issue 2172683003: Include an empty breakpoints list on the Isolate response when the debugger is disabled. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 9b762903934f450e69d151c2d26cd0a1d9a59f3d..d8bdc5e528d7df1aa26132b15470c7dd3ecee598 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1996,16 +1996,16 @@ void Isolate::PrintJSON(JSONStream* stream, bool ref) {
}
}
- if (debugger() != NULL) {
- {
- JSONArray breakpoints(&jsobj, "breakpoints");
+ {
+ JSONArray breakpoints(&jsobj, "breakpoints");
+ if (debugger() != NULL) {
debugger()->PrintBreakpointsToJSONArray(&breakpoints);
}
+ }
- {
- JSONObject jssettings(&jsobj, "_debuggerSettings");
- debugger()->PrintSettingsToJSONObject(&jssettings);
- }
+ if (debugger() != NULL) {
+ JSONObject jssettings(&jsobj, "_debuggerSettings");
+ debugger()->PrintSettingsToJSONObject(&jssettings);
}
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698