Skip to content

Commit

Permalink
Debugger: Fixed breakpoints containing a whitespace-only condition ne…
Browse files Browse the repository at this point in the history
…ver being triggered
  • Loading branch information
SourMesen committed Jun 21, 2024
1 parent 70f302a commit b4781c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Debugger/Breakpoints/Breakpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b4781c2

Please sign in to comment.