diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs index 9f67b49c7..b7b1d541d 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs @@ -350,17 +350,17 @@ namespace Cosmos.Debug.VSDebugEngine { if (mEngine.AfterBreak) { mCallback.OnStepComplete(); } else { - // Code based break. Tell VS to break. - mCallback.OnBreakpoint(mThread, new ReadOnlyCollection(xBoundBreakpoints)); // We catch and resend data rather than using a second serial port because // while this would work fine in a VM, it puts extra requirements on the setup // when real hardware is used. mDbgConnector.SendRegisters(); + // Code based break. Tell VS to break. + mCallback.OnBreakpoint(mThread, new ReadOnlyCollection(xBoundBreakpoints)); } } else { // Found a bound breakpoint - mCallback.OnBreakpoint(mThread, new ReadOnlyCollection(xBoundBreakpoints)); mDbgConnector.SendRegisters(); + mCallback.OnBreakpoint(mThread, new ReadOnlyCollection(xBoundBreakpoints)); mEngine.AfterBreak = true; } break;