From 59b807fa153b4c0c34edf7e39fba109f77306d5a Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 12 Sep 2019 09:46:12 -0700 Subject: [PATCH] Fixed breakpoint error with multiple breakpoint locations in a file --- IDEHelper/WinDebugger.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IDEHelper/WinDebugger.cpp b/IDEHelper/WinDebugger.cpp index 26361ac8..6b5c86dd 100644 --- a/IDEHelper/WinDebugger.cpp +++ b/IDEHelper/WinDebugger.cpp @@ -3040,6 +3040,12 @@ void WinDebugger::CheckBreakpoint(WdBreakpoint* wdBreakpoint, DbgSrcFile* srcFil foundInSequence = true; } } + else + { + //TODO: We didn't have this here, but if we don't have this then there are some cases where the method-closing brace generates code in + // multiple places so we need to ensure this will break on them all + foundInSequence = false; + } if ((lineOffset >= 0) && (lineOffset <= maxLineDist) && (lineOffset <= bestLineOffset)) {