OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "platform/assert.h" | 5 #include "platform/assert.h" |
6 | 6 |
7 #include "vm/dart_entry.h" | 7 #include "vm/dart_entry.h" |
8 #include "vm/debugger.h" | 8 #include "vm/debugger.h" |
9 #include "vm/json_stream.h" | 9 #include "vm/json_stream.h" |
10 #include "vm/message.h" | 10 #include "vm/message.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 case kInvalidRequest: | 117 case kInvalidRequest: |
118 return "Invalid Request"; | 118 return "Invalid Request"; |
119 case kMethodNotFound: | 119 case kMethodNotFound: |
120 return "Method not found"; | 120 return "Method not found"; |
121 case kInvalidParams: | 121 case kInvalidParams: |
122 return "Invalid params"; | 122 return "Invalid params"; |
123 case kInternalError: | 123 case kInternalError: |
124 return "Internal error"; | 124 return "Internal error"; |
125 case kFeatureDisabled: | 125 case kFeatureDisabled: |
126 return "Feature is disabled"; | 126 return "Feature is disabled"; |
127 case kVMMustBePaused: | |
128 return "VM must be paused"; | |
129 case kCannotAddBreakpoint: | 127 case kCannotAddBreakpoint: |
130 return "Cannot add breakpoint"; | 128 return "Cannot add breakpoint"; |
| 129 case kIsolateMustBeRunnable: |
| 130 return "Isolate must be runnable"; |
| 131 case kIsolateMustBePaused: |
| 132 return "Isolate must be paused"; |
131 default: | 133 default: |
132 return "Extension error"; | 134 return "Extension error"; |
133 } | 135 } |
134 } | 136 } |
135 | 137 |
136 | 138 |
137 static void PrintRequest(JSONObject* obj, JSONStream* js) { | 139 static void PrintRequest(JSONObject* obj, JSONStream* js) { |
138 JSONObject jsobj(obj, "request"); | 140 JSONObject jsobj(obj, "request"); |
139 jsobj.AddProperty("method", js->method()); | 141 jsobj.AddProperty("method", js->method()); |
140 { | 142 { |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 ASSERT(len == len2); | 891 ASSERT(len == len2); |
890 stream_->buffer_.AddChar('"'); | 892 stream_->buffer_.AddChar('"'); |
891 stream_->AddEscapedUTF8String(p); | 893 stream_->AddEscapedUTF8String(p); |
892 stream_->buffer_.AddChar('"'); | 894 stream_->buffer_.AddChar('"'); |
893 free(p); | 895 free(p); |
894 } | 896 } |
895 | 897 |
896 #endif // !PRODUCT | 898 #endif // !PRODUCT |
897 | 899 |
898 } // namespace dart | 900 } // namespace dart |
OLD | NEW |