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 'dart:math'; | 9 import 'dart:math'; |
10 import 'observatory_element.dart'; | 10 import 'observatory_element.dart'; |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 String helpLong = | 510 String helpLong = |
511 'Continue running the isolate until the current function exits.\n' | 511 'Continue running the isolate until the current function exits.\n' |
512 '\n' | 512 '\n' |
513 'Syntax: finish\n'; | 513 'Syntax: finish\n'; |
514 } | 514 } |
515 | 515 |
516 class SetCommand extends DebuggerCommand { | 516 class SetCommand extends DebuggerCommand { |
517 SetCommand(Debugger debugger) | 517 SetCommand(Debugger debugger) |
518 : super(debugger, 'set', []); | 518 : super(debugger, 'set', []); |
519 | 519 |
520 static var _boeValues = ['all', 'none', 'unhandled']; | 520 static var _boeValues = ['All', 'None', 'Unhandled']; |
521 static var _boolValues = ['false', 'true']; | 521 static var _boolValues = ['false', 'true']; |
522 | 522 |
523 static var _options = { | 523 static var _options = { |
524 'break-on-exception': [_boeValues, | 524 'break-on-exception': [_boeValues, |
525 _setBreakOnException, | 525 _setBreakOnException, |
526 (debugger, _) => debugger.breakOnException], | 526 (debugger, _) => debugger.breakOnException], |
527 'up-is-down': [_boolValues, | 527 'up-is-down': [_boolValues, |
528 _setUpIsDown, | 528 _setUpIsDown, |
529 (debugger, _) => debugger.upIsDown], | 529 (debugger, _) => debugger.upIsDown], |
530 }; | 530 }; |
531 | 531 |
532 static Future _setBreakOnException(debugger, name, value) async { | 532 static Future _setBreakOnException(debugger, name, value) async { |
533 var result = await debugger.isolate.setExceptionPauseInfo(value); | 533 var result = await debugger.isolate.setExceptionPauseMode(value); |
534 if (result.isError) { | 534 if (result.isError) { |
535 debugger.console.print(result.toString()); | 535 debugger.console.print(result.toString()); |
536 } else { | 536 } else { |
537 // Printing will occur elsewhere. | 537 // Printing will occur elsewhere. |
538 debugger.breakOnException = value; | 538 debugger.breakOnException = value; |
539 } | 539 } |
540 } | 540 } |
541 | 541 |
542 static Future _setUpIsDown(debugger, name, value) async { | 542 static Future _setUpIsDown(debugger, name, value) async { |
543 if (value == 'true') { | 543 if (value == 'true') { |
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2568 } | 2568 } |
2569 }); | 2569 }); |
2570 } | 2570 } |
2571 | 2571 |
2572 void focus() { | 2572 void focus() { |
2573 $['textBox'].focus(); | 2573 $['textBox'].focus(); |
2574 } | 2574 } |
2575 | 2575 |
2576 DebuggerInputElement.created() : super.created(); | 2576 DebuggerInputElement.created() : super.created(); |
2577 } | 2577 } |
OLD | NEW |