Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Oct 9, 2022
1 parent b7175a0 commit 5b78556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Fairy.Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5b78556

Please sign in to comment.