diff --git a/Changes.md b/Changes.md index 250a0b981..22c6ab0a7 100644 --- a/Changes.md +++ b/Changes.md @@ -6,5 +6,3 @@ consolidating using generics with POCO objects and shared base class ## 4.0.0-alpha201802027a * Milan release - - diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs b/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs index 50c1a61a8..af7d2f2c2 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Debugging/DebuggerSourceMap.cs @@ -228,8 +228,8 @@ namespace Microsoft.Bot.Builder.Dialogs.Debugging options = from sourceItem in sourceByItem let source = sourceItem.Value where PathEquals(source.Path, row.Source.Path) - where source.StartPoint.LineIndex >= row.SourceBreakpoint.Line - let distance = Math.Abs(source.StartPoint.LineIndex - row.SourceBreakpoint.Line) + where source.StartPoint.LineIndex <= row.SourceBreakpoint.Line && source.EndPoint.LineIndex >= row.SourceBreakpoint.Line + let distance = row.SourceBreakpoint.Line - source.StartPoint.LineIndex orderby distance select sourceItem; }