Trigger Step Changed

pull/867/head
ioedeveloper 4 years ago
parent a4e470e28b
commit 675faaf145
  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)) { if (!this.traceManager.inRange(step)) {
return return
} }
this.event.trigger('stepChanged', [step]) this.triggerStepChanged(step)
} }
stepIntoForward (solidityMode) { stepIntoForward (solidityMode) {
@ -110,7 +110,7 @@ export class DebuggerStepManager {
if (!this.traceManager.inRange(step)) { if (!this.traceManager.inRange(step)) {
return return
} }
this.event.trigger('stepChanged', [step]) this.triggerStepChanged(step)
} }
stepOverBack (solidityMode) { stepOverBack (solidityMode) {
@ -120,7 +120,7 @@ export class DebuggerStepManager {
step = this.resolveToReducedTrace(step, -1) step = this.resolveToReducedTrace(step, -1)
} }
this.currentStepIndex = step this.currentStepIndex = step
this.event.trigger('stepChanged', [step]) this.triggerStepChanged(step)
} }
stepOverForward (solidityMode) { stepOverForward (solidityMode) {
@ -135,7 +135,7 @@ export class DebuggerStepManager {
step = this.resolveToReducedTrace(step, 1) step = this.resolveToReducedTrace(step, 1)
} }
this.currentStepIndex = step this.currentStepIndex = step
this.event.trigger('stepChanged', [step]) this.triggerStepChanged(step)
} }
jumpOut (solidityMode) { jumpOut (solidityMode) {
@ -145,13 +145,13 @@ export class DebuggerStepManager {
step = this.resolveToReducedTrace(step, 0) step = this.resolveToReducedTrace(step, 0)
} }
this.currentStepIndex = step this.currentStepIndex = step
this.event.trigger('stepChanged', [step]) this.triggerStepChanged(step)
} }
jumpTo (step) { jumpTo (step) {
if (!this.traceManager.inRange(step)) return if (!this.traceManager.inRange(step)) return
this.currentStepIndex = step this.currentStepIndex = step
this.event.trigger('stepChanged', [step]) this.triggerStepChanged(step)
} }
jumpToException () { jumpToException () {

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

Loading…
Cancel
Save