diff --git a/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs b/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs index 5e173b76a..2264be6e5 100644 --- a/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs +++ b/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs @@ -492,7 +492,7 @@ namespace Cosmos.Compiler.DebugStub { JumpIf(Flags.NotEqual, "DebugStub_ExecutingStepOverAfter"); Label = "Debug__StepOver__"; EAX = Memory["DebugEBP", 32]; - EAX.Compare(Memory["DebugEBP", 32]); + EAX.Compare(Memory["DebugBreakEBP", 32]); // If EBP and start EBP arent equal, dont break // Dont use Equal because we aslo need to stop above if the user starts // the step at the end of a method and next item is after a return