From 5b78556baa0c6481abece1b88066745da3e344e2 Mon Sep 17 00:00:00 2001 From: Hecate2 <2474101468@qq.com> Date: Sun, 9 Oct 2022 18:30:35 +0800 Subject: [PATCH] fix --- Fairy.Debugger.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Fairy.Debugger.cs b/Fairy.Debugger.cs index 74f1015..b50e363 100644 --- a/Fairy.Debugger.cs +++ b/Fairy.Debugger.cs @@ -288,10 +288,12 @@ private FairyEngine StepOverSourceCode(FairyEngine engine, out BreakReason break { engine = ExecuteAndCheck(engine, out breakReason, requiredBreakReason: BreakReason.AssemblyBreakpoint | BreakReason.SourceCodeBreakpoint | BreakReason.SourceCode); if (engine.State == VMState.BREAK) + { if ((breakReason & BreakReason.AssemblyBreakpoint) > 0 || (breakReason & BreakReason.SourceCodeBreakpoint) > 0) break; if ((breakReason & BreakReason.SourceCode) > 0 && engine.InvocationStack.Count == invocationStackCount && engine.CurrentScriptHash == prevScriptHash) break; + } else engine.State = VMState.NONE; }