Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library debugger_page_element; | 5 library debugger_page_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
| 10 import 'package:observatory/app.dart'; | 10 import 'package:observatory/app.dart'; |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 513 } | 513 } |
| 514 | 514 |
| 515 class SetCommand extends DebuggerCommand { | 515 class SetCommand extends DebuggerCommand { |
| 516 SetCommand(Debugger debugger) | 516 SetCommand(Debugger debugger) |
| 517 : super(debugger, 'set', []); | 517 : super(debugger, 'set', []); |
| 518 | 518 |
| 519 static var _boeValues = ['all', 'none', 'unhandled']; | 519 static var _boeValues = ['all', 'none', 'unhandled']; |
| 520 static var _boolValues = ['false', 'true']; | 520 static var _boolValues = ['false', 'true']; |
| 521 | 521 |
| 522 static var _options = { | 522 static var _options = { |
| 523 'break-on-exception': [_boeValues, | 523 'break-on-exception': [_boeValues, |
|
Jennifer Messerly
2015/09/02 23:22:41
here's where the parameter is declared.
you can al
| |
| 524 _setBreakOnException, | 524 _setBreakOnException, |
| 525 (debugger, _) => debugger.breakOnException], | 525 (debugger, _) => debugger.breakOnException], |
| 526 'up-is-down': [_boolValues, | 526 'up-is-down': [_boolValues, |
| 527 _setUpIsDown, | 527 _setUpIsDown, |
| 528 (debugger, _) => debugger.upIsDown], | 528 (debugger, _) => debugger.upIsDown], |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 static Future _setBreakOnException(debugger, name, value) async { | 531 static Future _setBreakOnException(debugger, name, value) async { |
| 532 var result = await debugger.isolate.setExceptionPauseInfo(value); | 532 var result = await debugger.isolate.setExceptionPauseInfo(value); |
| 533 if (result.isError) { | 533 if (result.isError) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 614 return new Future.value(result); | 614 return new Future.value(result); |
| 615 } | 615 } |
| 616 | 616 |
| 617 String helpShort = | 617 String helpShort = |
| 618 'Set a debugger option'; | 618 'Set a debugger option'; |
| 619 | 619 |
| 620 String helpLong = | 620 String helpLong = |
| 621 'Set a debugger option.\n' | 621 'Set a debugger option.\n' |
| 622 '\n' | 622 '\n' |
| 623 'Known options:\n' | 623 'Known options:\n' |
| 624 ' break-on-exceptions # Should the debugger break on exceptions?\n' | 624 ' break-on-exception # Should the debugger break on exceptions?\n' |
| 625 " # ${_boeValues}\n" | 625 " # ${_boeValues}\n" |
| 626 ' up-is-down # Reverse meaning of up/down commands?\n' | 626 ' up-is-down # Reverse meaning of up/down commands?\n' |
| 627 " # ${_boolValues}\n" | 627 " # ${_boolValues}\n" |
| 628 '\n' | 628 '\n' |
| 629 'Syntax: set # Display all option settings\n' | 629 'Syntax: set # Display all option settings\n' |
| 630 ' set <option> # Get current value for option\n' | 630 ' set <option> # Get current value for option\n' |
| 631 ' set <option> <value> # Set value for option'; | 631 ' set <option> <value> # Set value for option'; |
| 632 } | 632 } |
| 633 | 633 |
| 634 class BreakCommand extends DebuggerCommand { | 634 class BreakCommand extends DebuggerCommand { |
| (...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2359 } | 2359 } |
| 2360 }); | 2360 }); |
| 2361 } | 2361 } |
| 2362 | 2362 |
| 2363 void focus() { | 2363 void focus() { |
| 2364 $['textBox'].focus(); | 2364 $['textBox'].focus(); |
| 2365 } | 2365 } |
| 2366 | 2366 |
| 2367 DebuggerInputElement.created() : super.created(); | 2367 DebuggerInputElement.created() : super.created(); |
| 2368 } | 2368 } |
| OLD | NEW |