do not trigger step changed

pull/2120/head
yann300 3 years ago
parent 76f8549ae3
commit bace58481f
  1. 4
      libs/remix-debug/src/debugger/stepManager.ts

@ -121,6 +121,7 @@ export class DebuggerStepManager {
if (solidityMode) {
step = this.resolveToReducedTrace(step, -1)
}
if (this.currentStepIndex === step) return
this.currentStepIndex = step
this.triggerStepChanged(step)
}
@ -136,6 +137,7 @@ export class DebuggerStepManager {
if (solidityMode) {
step = this.resolveToReducedTrace(step, 1)
}
if (this.currentStepIndex === step) return
this.currentStepIndex = step
this.triggerStepChanged(step)
}
@ -146,12 +148,14 @@ export class DebuggerStepManager {
if (solidityMode) {
step = this.resolveToReducedTrace(step, 0)
}
if (this.currentStepIndex === step) return
this.currentStepIndex = step
this.triggerStepChanged(step)
}
jumpTo (step) {
if (!this.traceManager.inRange(step)) return
if (this.currentStepIndex === step) return
this.currentStepIndex = step
this.triggerStepChanged(step)
}

Loading…
Cancel
Save