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; }