Trigger Step Changed

pull/5370/head
ioedeveloper 4 years ago
parent b55d9c00fc
commit 9ce1f84e76
  1. 12
      libs/remix-debug/src/debugger/stepManager.ts
  2. 2
      libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx

@ -97,7 +97,7 @@ export class DebuggerStepManager {
if (!this.traceManager.inRange(step)) {
return
}
this.event.trigger('stepChanged', [step])
this.triggerStepChanged(step)
}
stepIntoForward (solidityMode) {
@ -110,7 +110,7 @@ export class DebuggerStepManager {
if (!this.traceManager.inRange(step)) {
return
}
this.event.trigger('stepChanged', [step])
this.triggerStepChanged(step)
}
stepOverBack (solidityMode) {
@ -120,7 +120,7 @@ export class DebuggerStepManager {
step = this.resolveToReducedTrace(step, -1)
}
this.currentStepIndex = step
this.event.trigger('stepChanged', [step])
this.triggerStepChanged(step)
}
stepOverForward (solidityMode) {
@ -135,7 +135,7 @@ export class DebuggerStepManager {
step = this.resolveToReducedTrace(step, 1)
}
this.currentStepIndex = step
this.event.trigger('stepChanged', [step])
this.triggerStepChanged(step)
}
jumpOut (solidityMode) {
@ -145,13 +145,13 @@ export class DebuggerStepManager {
step = this.resolveToReducedTrace(step, 0)
}
this.currentStepIndex = step
this.event.trigger('stepChanged', [step])
this.triggerStepChanged(step)
}
jumpTo (step) {
if (!this.traceManager.inRange(step)) return
this.currentStepIndex = step
this.event.trigger('stepChanged', [step])
this.triggerStepChanged(step)
}
jumpToException () {

@ -45,7 +45,7 @@ export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward,
intoForwardDisabled: stepState === 'end',
overForwardDisabled: stepState === 'end',
jumpNextBreakpointDisabled: stepState === 'end',
jumpOutDisabled: jumpOutDisabled || true
jumpOutDisabled: (jumpOutDisabled !== null) && (jumpOutDisabled !== undefined) ? jumpOutDisabled : true
}
})
}

Loading…
Cancel
Save