From bace58481f8856572893b3f99e6ce00561238423 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 28 Feb 2022 11:25:22 +0100 Subject: [PATCH] do not trigger step changed --- libs/remix-debug/src/debugger/stepManager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/remix-debug/src/debugger/stepManager.ts b/libs/remix-debug/src/debugger/stepManager.ts index 6fd2e5fa22..07693ca62f 100644 --- a/libs/remix-debug/src/debugger/stepManager.ts +++ b/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) }