OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 }, | 459 }, |
460 | 460 |
461 _clearInterface: function() | 461 _clearInterface: function() |
462 { | 462 { |
463 this.sidebarPanes.callstack.update(null); | 463 this.sidebarPanes.callstack.update(null); |
464 this.sidebarPanes.scopechain.update(null); | 464 this.sidebarPanes.scopechain.update(null); |
465 this.sidebarPanes.jsBreakpoints.clearBreakpointHighlight(); | 465 this.sidebarPanes.jsBreakpoints.clearBreakpointHighlight(); |
466 WebInspector.domBreakpointsSidebarPane.clearBreakpointHighlight(); | 466 WebInspector.domBreakpointsSidebarPane.clearBreakpointHighlight(); |
467 this.sidebarPanes.eventListenerBreakpoints.clearBreakpointHighlight(); | 467 this.sidebarPanes.eventListenerBreakpoints.clearBreakpointHighlight(); |
468 this.sidebarPanes.xhrBreakpoints.clearBreakpointHighlight(); | 468 this.sidebarPanes.xhrBreakpoints.clearBreakpointHighlight(); |
469 if (Runtime.experiments.isEnabled("stepIntoAsync")) | 469 if (this.sidebarPanes.asyncOperationBreakpoints) |
470 this.sidebarPanes.asyncOperationBreakpoints.clearBreakpointHighlight
(); | 470 this.sidebarPanes.asyncOperationBreakpoints.clearBreakpointHighlight
(); |
471 | 471 |
472 this._sourcesView.clearCurrentExecutionLine(); | 472 this._sourcesView.clearCurrentExecutionLine(); |
473 this._updateDebuggerButtons(); | 473 this._updateDebuggerButtons(); |
474 | 474 |
475 if (this._switchToPausedTargetTimeout) | 475 if (this._switchToPausedTargetTimeout) |
476 clearTimeout(this._switchToPausedTargetTimeout); | 476 clearTimeout(this._switchToPausedTargetTimeout); |
477 }, | 477 }, |
478 | 478 |
479 /** | 479 /** |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 this._toggleBreakpointsButton = new WebInspector.ToolbarButton(WebInspec
tor.UIString("Deactivate breakpoints."), "breakpoint-toolbar-item"); | 746 this._toggleBreakpointsButton = new WebInspector.ToolbarButton(WebInspec
tor.UIString("Deactivate breakpoints."), "breakpoint-toolbar-item"); |
747 this._toggleBreakpointsButton.setToggled(false); | 747 this._toggleBreakpointsButton.setToggled(false); |
748 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea
kpointsClicked, this); | 748 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea
kpointsClicked, this); |
749 debugToolbar.appendToolbarItem(this._toggleBreakpointsButton); | 749 debugToolbar.appendToolbarItem(this._toggleBreakpointsButton); |
750 | 750 |
751 // Pause on Exception | 751 // Pause on Exception |
752 this._pauseOnExceptionButton = new WebInspector.ToolbarButton("", "pause
-on-exceptions-toolbar-item"); | 752 this._pauseOnExceptionButton = new WebInspector.ToolbarButton("", "pause
-on-exceptions-toolbar-item"); |
753 this._pauseOnExceptionButton.addEventListener("click", this._togglePause
OnExceptions, this); | 753 this._pauseOnExceptionButton.addEventListener("click", this._togglePause
OnExceptions, this); |
754 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); | 754 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); |
755 | 755 |
| 756 // Async operations |
| 757 debugToolbar.appendToolbarItem(new WebInspector.ToolbarCheckbox(WebInspe
ctor.UIString("Async"), WebInspector.UIString("Capture async stack traces"), Web
Inspector.moduleSetting("enableAsyncStackTraces"))); |
| 758 |
756 return debugToolbar; | 759 return debugToolbar; |
757 }, | 760 }, |
758 | 761 |
759 _createDebugToolbarDrawer: function() | 762 _createDebugToolbarDrawer: function() |
760 { | 763 { |
761 var debugToolbarDrawer = createElementWithClass("div", "scripts-debug-to
olbar-drawer"); | 764 var debugToolbarDrawer = createElementWithClass("div", "scripts-debug-to
olbar-drawer"); |
762 | 765 |
763 var label = WebInspector.UIString("Pause On Caught Exceptions"); | 766 var label = WebInspector.UIString("Pause On Caught Exceptions"); |
764 var setting = WebInspector.moduleSetting("pauseOnCaughtException"); | 767 var setting = WebInspector.moduleSetting("pauseOnCaughtException"); |
765 debugToolbarDrawer.appendChild(WebInspector.SettingsUI.createSettingChec
kbox(label, setting, true)); | 768 debugToolbarDrawer.appendChild(WebInspector.SettingsUI.createSettingChec
kbox(label, setting, true)); |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 WebInspector.SourcesPanelFactory.prototype = { | 1452 WebInspector.SourcesPanelFactory.prototype = { |
1450 /** | 1453 /** |
1451 * @override | 1454 * @override |
1452 * @return {!WebInspector.Panel} | 1455 * @return {!WebInspector.Panel} |
1453 */ | 1456 */ |
1454 createPanel: function() | 1457 createPanel: function() |
1455 { | 1458 { |
1456 return WebInspector.SourcesPanel.instance(); | 1459 return WebInspector.SourcesPanel.instance(); |
1457 } | 1460 } |
1458 } | 1461 } |
OLD | NEW |