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

Side by Side Diff: runtime/vm/service.cc

Issue 918003002: Add 'break' and 'clear' commands to Observatory debugger. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/test/source_location_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "vm/service.h" 5 #include "vm/service.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 } 1997 }
1998 const char* bpt_id = js->LookupParam("breakpointId"); 1998 const char* bpt_id = js->LookupParam("breakpointId");
1999 SourceBreakpoint* bpt = LookupBreakpoint(isolate, bpt_id); 1999 SourceBreakpoint* bpt = LookupBreakpoint(isolate, bpt_id);
2000 if (bpt == NULL) { 2000 if (bpt == NULL) {
2001 fprintf(stderr, "ERROR1"); 2001 fprintf(stderr, "ERROR1");
2002 PrintInvalidParamError(js, "breakpointId"); 2002 PrintInvalidParamError(js, "breakpointId");
2003 return true; 2003 return true;
2004 } 2004 }
2005 isolate->debugger()->RemoveBreakpoint(bpt->id()); 2005 isolate->debugger()->RemoveBreakpoint(bpt->id());
2006 2006
2007 fprintf(stderr, "SUCCESS");
2008 // TODO(turnidge): Consider whether the 'Success' type is proper. 2007 // TODO(turnidge): Consider whether the 'Success' type is proper.
2009 JSONObject jsobj(js); 2008 JSONObject jsobj(js);
2010 jsobj.AddProperty("type", "Success"); 2009 jsobj.AddProperty("type", "Success");
2011 jsobj.AddProperty("id", ""); 2010 jsobj.AddProperty("id", "");
2012 return true; 2011 return true;
2013 } 2012 }
2014 2013
2015 2014
2016 static RawClass* GetMetricsClass(Isolate* isolate) { 2015 static RawClass* GetMetricsClass(Isolate* isolate) {
2017 const Library& prof_lib = 2016 const Library& prof_lib =
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2860 while (current != NULL) { 2859 while (current != NULL) {
2861 if (strcmp(name, current->name()) == 0) { 2860 if (strcmp(name, current->name()) == 0) {
2862 return current; 2861 return current;
2863 } 2862 }
2864 current = current->next(); 2863 current = current->next();
2865 } 2864 }
2866 return NULL; 2865 return NULL;
2867 } 2866 }
2868 2867
2869 } // namespace dart 2868 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/test/source_location_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698