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

Side by Side Diff: runtime/observatory/lib/src/app/application.dart

Issue 1174313002: Allow setting break-on-exceptions option over the service protocol. (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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/debugger.dart » ('j') | 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 part of app; 5 part of app;
6 6
7 class Notification { 7 class Notification {
8 Notification.fromEvent(this.event); 8 Notification.fromEvent(this.event);
9 Notification.fromException(this.exception, this.stacktrace); 9 Notification.fromException(this.exception, this.stacktrace);
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 void _onEvent(ServiceEvent event) { 87 void _onEvent(ServiceEvent event) {
88 switch(event.kind) { 88 switch(event.kind) {
89 case ServiceEvent.kIsolateStart: 89 case ServiceEvent.kIsolateStart:
90 case ServiceEvent.kIsolateUpdate: 90 case ServiceEvent.kIsolateUpdate:
91 case ServiceEvent.kGraph: 91 case ServiceEvent.kGraph:
92 case ServiceEvent.kBreakpointAdded: 92 case ServiceEvent.kBreakpointAdded:
93 case ServiceEvent.kBreakpointResolved: 93 case ServiceEvent.kBreakpointResolved:
94 case ServiceEvent.kBreakpointRemoved: 94 case ServiceEvent.kBreakpointRemoved:
95 case ServiceEvent.kGC: 95 case ServiceEvent.kGC:
96 case ServiceEvent.kDebuggerSettingsUpdate:
96 // Ignore for now. 97 // Ignore for now.
97 break; 98 break;
98 99
99 case ServiceEvent.kIsolateExit: 100 case ServiceEvent.kIsolateExit:
100 case ServiceEvent.kResume: 101 case ServiceEvent.kResume:
101 removePauseEvents(event.isolate); 102 removePauseEvents(event.isolate);
102 break; 103 break;
103 104
104 case ServiceEvent.kPauseStart: 105 case ServiceEvent.kPauseStart:
105 case ServiceEvent.kPauseExit: 106 case ServiceEvent.kPauseExit:
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 this.vm = new FakeVM(crashDump['result']); 218 this.vm = new FakeVM(crashDump['result']);
218 app.locationManager.go('#/vm'); 219 app.locationManager.go('#/vm');
219 } 220 }
220 221
221 void handleException(e, st) { 222 void handleException(e, st) {
222 // TODO(turnidge): Report this failure via analytics. 223 // TODO(turnidge): Report this failure via analytics.
223 Logger.root.warning('Caught exception: ${e}\n${st}'); 224 Logger.root.warning('Caught exception: ${e}\n${st}');
224 notifications.add(new Notification.fromException(e, st)); 225 notifications.add(new Notification.fromException(e, st));
225 } 226 }
226 } 227 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/debugger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698