pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent 36726fd8dd
commit bd0fd77183
  1. 47
      src/app/debugger/debuggerUI/StepManager.js

@ -183,63 +183,16 @@ StepManager.prototype.init = function () {
this.changeState(0) this.changeState(0)
} }
// StepManager.prototype.jumpTo = function (step) {
// if (!this.traceManager.inRange(step)) return
// this.slider.setValue(step)
// this.changeState(step)
// }
StepManager.prototype.sliderMoved = function (step) { StepManager.prototype.sliderMoved = function (step) {
if (!this.traceManager.inRange(step)) return if (!this.traceManager.inRange(step)) return
this.changeState(step) this.changeState(step)
} }
// StepManager.prototype.stepIntoForward = function () {
// if (!this.traceManager.isLoaded()) return
// var step = this.currentStepIndex + 1
// if (!this.traceManager.inRange(step)) {
// return
// }
// this.slider.setValue(step)
// this.changeState(step)
// }
StepManager.prototype.updateStep = function (step) { StepManager.prototype.updateStep = function (step) {
this.slider.setValue(step) this.slider.setValue(step)
this.changeState(step) this.changeState(step)
} }
// StepManager.prototype.stepIntoBack = function () {
// if (!this.traceManager.isLoaded()) return
// var step = this.currentStepIndex - 1
// if (!this.traceManager.inRange(step)) {
// return
// }
// this.slider.setValue(step)
// this.changeState(step)
// }
// StepManager.prototype.stepOverForward = function () {
// if (!this.traceManager.isLoaded()) return
// var step = this.traceManager.findStepOverForward(this.currentStepIndex)
// this.slider.setValue(step)
// this.changeState(step)
// }
// StepManager.prototype.stepOverBack = function () {
// if (!this.traceManager.isLoaded()) return
// var step = this.traceManager.findStepOverBack(this.currentStepIndex)
// this.slider.setValue(step)
// this.changeState(step)
// }
// StepManager.prototype.jumpOut = function () {
// if (!this.traceManager.isLoaded()) return
// var step = this.traceManager.findStepOut(this.currentStepIndex)
// this.slider.setValue(step)
// this.changeState(step)
// }
StepManager.prototype.changeState = function (step) { StepManager.prototype.changeState = function (step) {
const self = this const self = this
this.currentStepIndex = step this.currentStepIndex = step

Loading…
Cancel
Save