2012-02-07 09:22:30 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2012-05-21 04:12:37 -07:00
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2012-02-07 09:22:30 -08:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://browser/content/debugger.css" type="text/css"?>
|
2012-05-05 02:35:00 -07:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/common.css" type="text/css"?>
|
2012-02-07 09:22:30 -08:00
|
|
|
<?xml-stylesheet href="chrome://browser/skin/devtools/debugger.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window [
|
2012-10-26 10:10:17 -07:00
|
|
|
<!ENTITY % debuggerDTD SYSTEM "chrome://browser/locale/devtools/debugger.dtd">
|
|
|
|
%debuggerDTD;
|
2012-02-07 09:22:30 -08:00
|
|
|
]>
|
2012-03-08 09:37:35 -08:00
|
|
|
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://browser/content/source-editor-overlay.xul"?>
|
2012-04-08 22:15:47 -07:00
|
|
|
|
2012-05-05 02:35:00 -07:00
|
|
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
2012-02-07 09:22:30 -08:00
|
|
|
|
2012-05-05 02:35:00 -07:00
|
|
|
<script type="text/javascript" src="chrome://global/content/globalOverlay.js"/>
|
|
|
|
<script type="text/javascript" src="debugger-controller.js"/>
|
|
|
|
<script type="text/javascript" src="debugger-view.js"/>
|
2012-10-26 10:10:17 -07:00
|
|
|
<script type="text/javascript" src="debugger-toolbar.js"/>
|
|
|
|
<script type="text/javascript" src="debugger-panes.js"/>
|
2012-04-08 22:15:47 -07:00
|
|
|
|
2012-10-26 13:28:54 -07:00
|
|
|
<commandset id="editMenuCommands"/>
|
|
|
|
<commandset id="sourceEditorCommands"/>
|
|
|
|
|
|
|
|
<commandset id="debuggerCommands">
|
|
|
|
<command id="resumeCommand"
|
|
|
|
oncommand="DebuggerView.Toolbar._onResumePressed()"/>
|
|
|
|
<command id="stepOverCommand"
|
|
|
|
oncommand="DebuggerView.Toolbar._onStepOverPressed()"/>
|
|
|
|
<command id="stepInCommand"
|
|
|
|
oncommand="DebuggerView.Toolbar._onStepInPressed()"/>
|
|
|
|
<command id="stepOutCommand"
|
|
|
|
oncommand="DebuggerView.Toolbar._onStepOutPressed()"/>
|
|
|
|
<command id="fileSearchCommand"
|
|
|
|
oncommand="DebuggerView.Filtering._doFileSearch()"/>
|
|
|
|
<command id="lineSearchCommand"
|
|
|
|
oncommand="DebuggerView.Filtering._doLineSearch()"/>
|
|
|
|
<command id="tokenSearchCommand"
|
|
|
|
oncommand="DebuggerView.Filtering._doTokenSearch()"/>
|
|
|
|
<command id="globalSearchCommand"
|
|
|
|
oncommand="DebuggerView.Filtering._doGlobalSearch()"/>
|
2012-11-03 16:01:05 -07:00
|
|
|
<command id="variableSearchCommand"
|
|
|
|
oncommand="DebuggerView.Filtering._doVariableSearch()"/>
|
2012-11-15 22:42:52 -08:00
|
|
|
<command id="addBreakpointCommand"
|
|
|
|
oncommand="DebuggerView.Breakpoints._onCmdAddBreakpoint()"/>
|
|
|
|
<command id="addConditionalBreakpointCommand"
|
|
|
|
oncommand="DebuggerView.Breakpoints._onCmdAddConditionalBreakpoint()"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
<command id="togglePauseOnExceptions"
|
2012-10-26 13:28:54 -07:00
|
|
|
oncommand="DebuggerView.Options._togglePauseOnExceptions()"/>
|
|
|
|
<command id="toggleShowPanesOnStartup"
|
|
|
|
oncommand="DebuggerView.Options._toggleShowPanesOnStartup()"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
<command id="toggleShowNonEnum"
|
2012-11-03 16:01:05 -07:00
|
|
|
oncommand="DebuggerView.Options._toggleShowVariablesNonEnum()"/>
|
|
|
|
<command id="toggleShowVariablesSearchbox"
|
|
|
|
oncommand="DebuggerView.Options._toggleShowVariablesSearchbox()"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<popupset id="debuggerPopupset">
|
2012-05-05 02:35:00 -07:00
|
|
|
<menupopup id="sourceEditorContextMenu"
|
2012-05-09 03:22:11 -07:00
|
|
|
onpopupshowing="goUpdateSourceEditorMenuItems()">
|
2012-11-15 22:42:52 -08:00
|
|
|
<menuitem id="se-dbg-cMenu-addBreakpoint"
|
|
|
|
label="&debuggerUI.seMenuBreak;"
|
|
|
|
key="addBreakpointKey"
|
|
|
|
command="addBreakpointCommand"/>
|
|
|
|
<menuitem id="se-dbg-cMenu-addConditionalBreakpoint"
|
|
|
|
label="&debuggerUI.seMenuCondBreak;"
|
|
|
|
key="addConditionalBreakpointKey"
|
|
|
|
command="addConditionalBreakpointCommand"/>
|
|
|
|
<menuseparator/>
|
2012-05-05 02:35:00 -07:00
|
|
|
<menuitem id="se-cMenu-copy"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-cMenu-selectAll"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-cMenu-find"/>
|
|
|
|
<menuitem id="se-cMenu-findAgain"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-cMenu-gotoLine"/>
|
|
|
|
</menupopup>
|
2012-10-26 13:28:54 -07:00
|
|
|
<menupopup id="debuggerPrefsContextMenu"
|
|
|
|
position="before_end"
|
|
|
|
onpopupshowing="DebuggerView.Options._onPopupShowing()"
|
|
|
|
onpopuphiding="DebuggerView.Options._onPopupHiding()">
|
|
|
|
<menuitem id="pause-on-exceptions"
|
|
|
|
type="checkbox"
|
|
|
|
label="&debuggerUI.pauseExceptions;"
|
|
|
|
accesskey="&debuggerUI.pauseExceptions.key;"
|
|
|
|
command="togglePauseOnExceptions"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
<menuitem id="show-panes-on-startup"
|
|
|
|
type="checkbox"
|
|
|
|
label="&debuggerUI.showPanesOnInit;"
|
|
|
|
accesskey="&debuggerUI.showPanesOnInit.key;"
|
|
|
|
command="toggleShowPanesOnStartup"/>
|
2012-11-03 16:01:05 -07:00
|
|
|
<menuitem id="show-vars-nonenum"
|
2012-10-26 13:28:54 -07:00
|
|
|
type="checkbox"
|
|
|
|
label="&debuggerUI.showNonEnums;"
|
|
|
|
accesskey="&debuggerUI.showNonEnums.key;"
|
|
|
|
command="toggleShowNonEnum"/>
|
2012-11-03 16:01:05 -07:00
|
|
|
<menuitem id="show-vars-searchbox"
|
|
|
|
type="checkbox"
|
|
|
|
label="&debuggerUI.showVarsSearch;"
|
|
|
|
accesskey="&debuggerUI.showVarsSearch.key;"
|
|
|
|
command="toggleShowVariablesSearchbox"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
</menupopup>
|
2012-05-05 02:35:00 -07:00
|
|
|
</popupset>
|
2012-04-08 22:15:47 -07:00
|
|
|
|
2012-05-05 02:35:00 -07:00
|
|
|
<keyset id="sourceEditorKeys"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
|
|
|
|
<keyset id="debuggerKeys">
|
|
|
|
<key id="resumeKey"
|
|
|
|
keycode="VK_F6"
|
|
|
|
command="resumeCommand"/>
|
|
|
|
<key id="stepOverKey"
|
|
|
|
keycode="VK_F7"
|
|
|
|
command="stepOverCommand"/>
|
|
|
|
<key id="stepInKey"
|
|
|
|
keycode="VK_F8"
|
|
|
|
command="stepInCommand"/>
|
|
|
|
<key id="stepOutKey"
|
|
|
|
keycode="VK_F8"
|
|
|
|
modifiers="shift"
|
|
|
|
command="stepOutCommand"/>
|
|
|
|
<key id="fileSearchKey"
|
|
|
|
key="P"
|
|
|
|
modifiers="control shift"
|
|
|
|
command="fileSearchCommand"/>
|
|
|
|
<key id="lineSearchKey"
|
|
|
|
key="G"
|
|
|
|
modifiers="control shift"
|
|
|
|
command="lineSearchCommand"/>
|
|
|
|
<key id="tokenSearchKey"
|
|
|
|
key="T"
|
|
|
|
modifiers="control shift"
|
|
|
|
command="tokenSearchCommand"/>
|
|
|
|
<key id="globalSearchKey"
|
|
|
|
key="F"
|
|
|
|
modifiers="control shift"
|
|
|
|
command="globalSearchCommand"/>
|
2012-11-03 16:01:05 -07:00
|
|
|
<key id="variableSearchKey"
|
|
|
|
key="V"
|
|
|
|
modifiers="control shift"
|
|
|
|
command="variableSearchCommand"/>
|
2012-11-15 22:42:52 -08:00
|
|
|
<key id="addBreakpointKey"
|
|
|
|
key="B"
|
|
|
|
modifiers="accel"
|
|
|
|
command="addBreakpointCommand"/>
|
|
|
|
<key id="addConditionalBreakpointKey"
|
|
|
|
key="B"
|
|
|
|
modifiers="accel shift"
|
|
|
|
command="addConditionalBreakpointCommand"/>
|
2012-08-01 22:31:15 -07:00
|
|
|
</keyset>
|
2012-04-08 22:15:47 -07:00
|
|
|
|
2012-05-05 02:35:00 -07:00
|
|
|
<vbox id="body" flex="1">
|
|
|
|
<toolbar id="dbg-toolbar" class="devtools-toolbar">
|
|
|
|
#ifdef XP_MACOSX
|
2012-05-24 23:46:09 -07:00
|
|
|
<toolbarbutton id="close"
|
2012-10-26 10:10:17 -07:00
|
|
|
class="devtools-closebutton"
|
|
|
|
tooltiptext="&debuggerUI.closeButton.tooltip;"/>
|
2012-05-05 02:35:00 -07:00
|
|
|
#endif
|
2012-05-24 23:46:09 -07:00
|
|
|
<hbox id="debugger-controls">
|
|
|
|
<toolbarbutton id="resume"
|
|
|
|
class="devtools-toolbarbutton"
|
|
|
|
tabindex="0"/>
|
|
|
|
<toolbarbutton id="step-over"
|
|
|
|
class="devtools-toolbarbutton"
|
|
|
|
tabindex="0"/>
|
|
|
|
<toolbarbutton id="step-in"
|
|
|
|
class="devtools-toolbarbutton"
|
|
|
|
tabindex="0"/>
|
|
|
|
<toolbarbutton id="step-out"
|
|
|
|
class="devtools-toolbarbutton"
|
|
|
|
tabindex="0"/>
|
|
|
|
</hbox>
|
2012-10-26 10:10:17 -07:00
|
|
|
<menulist id="chrome-globals"
|
|
|
|
class="devtools-menulist" hidden="true"/>
|
|
|
|
<menulist id="sources"
|
|
|
|
class="devtools-menulist"/>
|
|
|
|
<textbox id="searchbox"
|
|
|
|
class="devtools-searchinput" type="search"/>
|
2012-05-05 02:35:00 -07:00
|
|
|
<spacer flex="1"/>
|
2012-10-26 13:28:54 -07:00
|
|
|
<toolbarbutton id="toggle-panes"
|
|
|
|
class="devtools-toolbarbutton"
|
|
|
|
tabindex="0"/>
|
|
|
|
<toolbarbutton id="debugger-options"
|
|
|
|
class="devtools-option-toolbarbutton"
|
|
|
|
tooltiptext="&debuggerUI.optsButton.tooltip;"
|
|
|
|
popup="debuggerPrefsContextMenu"/>
|
2012-05-05 02:35:00 -07:00
|
|
|
#ifndef XP_MACOSX
|
2012-05-24 23:46:09 -07:00
|
|
|
<toolbarbutton id="close"
|
2012-10-26 10:10:17 -07:00
|
|
|
class="devtools-closebutton"
|
|
|
|
tooltiptext="&debuggerUI.closeButton.tooltip;"/>
|
2012-05-05 02:35:00 -07:00
|
|
|
#endif
|
|
|
|
</toolbar>
|
2012-11-03 16:01:05 -07:00
|
|
|
|
2012-10-26 10:10:17 -07:00
|
|
|
<panel id="searchbox-panel"
|
2012-09-11 12:50:20 -07:00
|
|
|
type="arrow"
|
|
|
|
noautofocus="true"
|
|
|
|
position="before_start">
|
|
|
|
<vbox>
|
|
|
|
<label class="description" value="&debuggerUI.searchPanelTitle;"/>
|
|
|
|
<hbox align="center">
|
2012-09-13 14:00:19 -07:00
|
|
|
<button id="global-operator-button" class="operator"
|
2012-10-26 13:28:54 -07:00
|
|
|
command="globalSearchCommand"/>
|
2012-09-13 14:00:19 -07:00
|
|
|
<label id="global-operator-label" class="plain operator"/>
|
2012-09-11 12:50:20 -07:00
|
|
|
</hbox>
|
|
|
|
<hbox align="center">
|
2012-09-13 14:00:19 -07:00
|
|
|
<button id="token-operator-button" class="operator"
|
2012-10-26 13:28:54 -07:00
|
|
|
command="tokenSearchCommand"/>
|
2012-09-13 14:00:19 -07:00
|
|
|
<label id="token-operator-label" class="plain operator"/>
|
2012-09-11 12:50:20 -07:00
|
|
|
</hbox>
|
|
|
|
<hbox align="center">
|
2012-09-13 14:00:19 -07:00
|
|
|
<button id="line-operator-button" class="operator"
|
2012-10-26 13:28:54 -07:00
|
|
|
command="lineSearchCommand"/>
|
2012-09-13 14:00:19 -07:00
|
|
|
<label id="line-operator-label" class="plain operator"/>
|
2012-09-11 12:50:20 -07:00
|
|
|
</hbox>
|
2012-11-03 16:01:05 -07:00
|
|
|
<hbox align="center">
|
|
|
|
<button id="variable-operator-button" class="operator"
|
|
|
|
command="variableSearchCommand"/>
|
|
|
|
<label id="variable-operator-label" class="plain operator"/>
|
|
|
|
</hbox>
|
2012-09-11 12:50:20 -07:00
|
|
|
</vbox>
|
|
|
|
</panel>
|
2012-11-03 16:01:05 -07:00
|
|
|
|
2012-11-15 22:42:52 -08:00
|
|
|
<panel id="conditional-breakpoint-panel"
|
|
|
|
type="arrow"
|
|
|
|
noautofocus="true"
|
|
|
|
position="after_start">
|
|
|
|
<vbox>
|
|
|
|
<label class="description" value="&debuggerUI.condBreakPanelTitle;"/>
|
|
|
|
<textbox id="conditional-breakpoint-textbox"/>
|
|
|
|
</vbox>
|
|
|
|
</panel>
|
|
|
|
|
2012-08-18 02:29:47 -07:00
|
|
|
<vbox id="dbg-content" flex="1">
|
2012-09-11 12:50:19 -07:00
|
|
|
<vbox id="globalsearch" hidden="true"/>
|
2012-08-18 02:29:47 -07:00
|
|
|
<splitter id="globalsearch-splitter"
|
|
|
|
class="devtools-horizontal-splitter" hidden="true"/>
|
|
|
|
<hbox flex="1">
|
|
|
|
<vbox id="stackframes+breakpoints">
|
|
|
|
<vbox id="stackframes" flex="1"/>
|
|
|
|
<splitter class="devtools-horizontal-splitter"/>
|
|
|
|
<vbox id="breakpoints"/>
|
|
|
|
</vbox>
|
|
|
|
<splitter class="devtools-side-splitter"/>
|
|
|
|
<vbox id="editor" flex="1"/>
|
|
|
|
<splitter class="devtools-side-splitter"/>
|
|
|
|
<vbox id="variables"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
2012-11-03 16:01:05 -07:00
|
|
|
|
2012-05-05 02:35:00 -07:00
|
|
|
</vbox>
|
|
|
|
</window>
|