mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 775050 - Add keyboard shortcuts for stepping, r=rcampbell
This commit is contained in:
parent
faf69525d5
commit
b3118bf2cb
@ -436,6 +436,7 @@ StackFrames.prototype = {
|
||||
this.exception = aPacket.why.exception;
|
||||
}
|
||||
this.activeThread.fillFrames(this.pageSize);
|
||||
DebuggerView.editor.focus();
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -583,10 +583,10 @@ function StackFramesView() {
|
||||
this._onFramesScroll = this._onFramesScroll.bind(this);
|
||||
this._onPauseExceptionsClick = this._onPauseExceptionsClick.bind(this);
|
||||
this._onCloseButtonClick = this._onCloseButtonClick.bind(this);
|
||||
this._onResumeButtonClick = this._onResumeButtonClick.bind(this);
|
||||
this._onStepOverClick = this._onStepOverClick.bind(this);
|
||||
this._onStepInClick = this._onStepInClick.bind(this);
|
||||
this._onStepOutClick = this._onStepOutClick.bind(this);
|
||||
this._onResume = this._onResume.bind(this);
|
||||
this._onStepOver = this._onStepOver.bind(this);
|
||||
this._onStepIn = this._onStepIn.bind(this);
|
||||
this._onStepOut = this._onStepOut.bind(this);
|
||||
}
|
||||
|
||||
StackFramesView.prototype = {
|
||||
@ -794,7 +794,7 @@ StackFramesView.prototype = {
|
||||
/**
|
||||
* Listener handling the pause/resume button click event.
|
||||
*/
|
||||
_onResumeButtonClick: function DVF__onResumeButtonClick() {
|
||||
_onResume: function DVF__onResume(e) {
|
||||
if (DebuggerController.activeThread.paused) {
|
||||
DebuggerController.activeThread.resume();
|
||||
} else {
|
||||
@ -805,22 +805,28 @@ StackFramesView.prototype = {
|
||||
/**
|
||||
* Listener handling the step over button click event.
|
||||
*/
|
||||
_onStepOverClick: function DVF__onStepOverClick() {
|
||||
_onStepOver: function DVF__onStepOver(e) {
|
||||
if (DebuggerController.activeThread.paused) {
|
||||
DebuggerController.activeThread.stepOver();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Listener handling the step in button click event.
|
||||
*/
|
||||
_onStepInClick: function DVF__onStepInClick() {
|
||||
_onStepIn: function DVF__onStepIn(e) {
|
||||
if (DebuggerController.activeThread.paused) {
|
||||
DebuggerController.activeThread.stepIn();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Listener handling the step out button click event.
|
||||
*/
|
||||
_onStepOutClick: function DVF__onStepOutClick() {
|
||||
_onStepOut: function DVF__onStepOut(e) {
|
||||
if (DebuggerController.activeThread.paused) {
|
||||
DebuggerController.activeThread.stepOut();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -847,13 +853,11 @@ StackFramesView.prototype = {
|
||||
|
||||
close.addEventListener("click", this._onCloseButtonClick, false);
|
||||
pauseOnExceptions.checked = DebuggerController.StackFrames.pauseOnExceptions;
|
||||
pauseOnExceptions.addEventListener("click",
|
||||
this._onPauseExceptionsClick,
|
||||
false);
|
||||
resume.addEventListener("click", this._onResumeButtonClick, false);
|
||||
stepOver.addEventListener("click", this._onStepOverClick, false);
|
||||
stepIn.addEventListener("click", this._onStepInClick, false);
|
||||
stepOut.addEventListener("click", this._onStepOutClick, false);
|
||||
pauseOnExceptions.addEventListener("click", this._onPauseExceptionsClick, false);
|
||||
resume.addEventListener("click", this._onResume, false);
|
||||
stepOver.addEventListener("click", this._onStepOver, false);
|
||||
stepIn.addEventListener("click", this._onStepIn, false);
|
||||
stepOut.addEventListener("click", this._onStepOut, false);
|
||||
frames.addEventListener("click", this._onFramesClick, false);
|
||||
frames.addEventListener("scroll", this._onFramesScroll, false);
|
||||
window.addEventListener("resize", this._onFramesScroll, false);
|
||||
@ -875,13 +879,11 @@ StackFramesView.prototype = {
|
||||
let frames = this._frames;
|
||||
|
||||
close.removeEventListener("click", this._onCloseButtonClick, false);
|
||||
pauseOnExceptions.removeEventListener("click",
|
||||
this._onPauseExceptionsClick,
|
||||
false);
|
||||
resume.removeEventListener("click", this._onResumeButtonClick, false);
|
||||
stepOver.removeEventListener("click", this._onStepOverClick, false);
|
||||
stepIn.removeEventListener("click", this._onStepInClick, false);
|
||||
stepOut.removeEventListener("click", this._onStepOutClick, false);
|
||||
pauseOnExceptions.removeEventListener("click", this._onPauseExceptionsClick, false);
|
||||
resume.removeEventListener("click", this._onResume, false);
|
||||
stepOver.removeEventListener("click", this._onStepOver, false);
|
||||
stepIn.removeEventListener("click", this._onStepIn, false);
|
||||
stepOut.removeEventListener("click", this._onStepOut, false);
|
||||
frames.removeEventListener("click", this._onFramesClick, false);
|
||||
frames.removeEventListener("scroll", this._onFramesScroll, false);
|
||||
window.removeEventListener("resize", this._onFramesScroll, false);
|
||||
|
@ -43,6 +43,16 @@
|
||||
<key key="T" modifiers="access shift"
|
||||
oncommand="DebuggerView.Scripts._onTokenSearch()"/>
|
||||
</keyset>
|
||||
<keyset id="threadStateKeys">
|
||||
<key keycode="VK_F6"
|
||||
oncommand="DebuggerView.StackFrames._onResume()"/>
|
||||
<key keycode="VK_F7"
|
||||
oncommand="DebuggerView.StackFrames._onStepOver()"/>
|
||||
<key keycode="VK_F8"
|
||||
oncommand="DebuggerView.StackFrames._onStepIn()"/>
|
||||
<key keycode="VK_F8" modifiers="shift"
|
||||
oncommand="DebuggerView.StackFrames._onStepOut()"/>
|
||||
</keyset>
|
||||
|
||||
<vbox id="body" flex="1">
|
||||
<toolbar id="dbg-toolbar" class="devtools-toolbar">
|
||||
|
Loading…
Reference in New Issue
Block a user