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); |
} |
{ |