From f2be04343aa0d9b6aaf874aeeb9587c7c93edb54 Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 8 Oct 2019 21:53:42 -0400 Subject: [PATCH] Debugger: Init breakpoints right away after a power cycle Otherwise breakpoints early on in the execution aren't hit at all --- UI/Debugger/frmDebugger.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/Debugger/frmDebugger.cs b/UI/Debugger/frmDebugger.cs index e856e6a..954b67e 100644 --- a/UI/Debugger/frmDebugger.cs +++ b/UI/Debugger/frmDebugger.cs @@ -409,13 +409,14 @@ namespace Mesen.GUI.Debugger DebugApi.Step(_cpuType, 1, StepType.PpuStep); } + BreakpointManager.SetBreakpoints(); + DebugState state = DebugApi.GetState(); this.BeginInvoke((MethodInvoker)(() => { DebugWorkspaceManager.ImportDbgFile(); LabelManager.RefreshLabels(); DebugApi.RefreshDisassembly(_cpuType); UpdateDebugger(state, null); - BreakpointManager.SetBreakpoints(); })); break; }