diff --git a/IDE/src/Debugger/Breakpoint.bf b/IDE/src/Debugger/Breakpoint.bf index 9231c610..21549b4e 100644 --- a/IDE/src/Debugger/Breakpoint.bf +++ b/IDE/src/Debugger/Breakpoint.bf @@ -135,20 +135,31 @@ namespace IDE.Debugger Breakpoint_SetThreadId(mNativeBreakpoint, mThreadId); } - public void CreateNative(bool bindNow = true) + public void CreateNative(bool bindNow = true, bool force = false) { //var debugger = IDEApp.sApp.mDebugger; if (mNativeBreakpoint == null) { if (mIsMemoryBreakpoint) { - // Wait for a 'rehup' - //mNativeBreakpoint = Debugger_CreateMemoryBreakpoint((void*)mMemoryAddress, mByteCount); + if (force) + mNativeBreakpoint = Debugger_CreateMemoryBreakpoint(mMemoryAddress, mByteCount); + else + { + // Wait for a 'rehup' + } } else if (mAddressRequested) { - // Wait for a 'rehup' - //mNativeBreakpoint = Debugger_CreateAddressBreakpoint(mMemoryAddress); + if (force) + { + //mNativeBreakpoint = Debugger_CreateAddressBreakpoint(mMemoryAddress); + } + else + { + // Wait for a 'rehup' + } + } else if (mFileName != null) { diff --git a/IDE/src/Debugger/DebugManager.bf b/IDE/src/Debugger/DebugManager.bf index 1dab1e34..d81c9a35 100644 --- a/IDE/src/Debugger/DebugManager.bf +++ b/IDE/src/Debugger/DebugManager.bf @@ -714,7 +714,7 @@ namespace IDE.Debugger else { if (mIsRunning) - breakpoint.CreateNative(); + breakpoint.CreateNative(true, true); } mBreakpointsChangedDelegate(); }