From b4781c28a7551cf2511980fbde18c07ed2fabd3e Mon Sep 17 00:00:00 2001 From: Sour Date: Fri, 21 Jun 2024 15:01:06 +0900 Subject: [PATCH] Debugger: Fixed breakpoints containing a whitespace-only condition never being triggered --- UI/Debugger/Breakpoints/Breakpoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Debugger/Breakpoints/Breakpoint.cs b/UI/Debugger/Breakpoints/Breakpoint.cs index 2d2bd5c2..8a39d48a 100644 --- a/UI/Debugger/Breakpoints/Breakpoint.cs +++ b/UI/Debugger/Breakpoints/Breakpoint.cs @@ -101,7 +101,7 @@ public InteropBreakpoint ToInteropBreakpoint(int breakpointId) }; bp.Condition = new byte[1000]; - byte[] condition = Encoding.UTF8.GetBytes(Condition.Replace(Environment.NewLine, " ")); + byte[] condition = Encoding.UTF8.GetBytes(Condition.Replace(Environment.NewLine, " ").Trim()); Array.Copy(condition, bp.Condition, condition.Length); return bp; }