mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add more flexibility to Breakpoint
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user