Add more flexibility to Breakpoint

This commit is contained in:
Yoshi Askharoun
2023-05-29 20:19:14 -05:00
parent d7ab417c91
commit a61e1e63a9
3 changed files with 67 additions and 36 deletions
+4 -2
View File
@@ -79,13 +79,15 @@ namespace Microsoft.Iris.Markup
{
bool ShouldBreak(Breakpoint b)
=> b.Enabled
&& b.Line == line && b.Column == column
&& b.Uri.Equals(loadResult.Uri, StringComparison.OrdinalIgnoreCase);
&& b.Uri.Equals(loadResult.Uri, StringComparison.OrdinalIgnoreCase)
&& (b.Offset == reader.CurrentOffset || (b.Line == line && b.Column == column));
// Check if a breakpoint has been set at this location
bool shouldBreakHere = Application.DebugSettings.Breakpoints.Any(ShouldBreak);
if (shouldBreakHere)
{
System.Diagnostics.Debugger.Break();
}
}
switch (opCode)