diff --git a/Debugger.Core/Src/Threads/Function.cs b/Debugger.Core/Src/Threads/Function.cs index 78f950f26..e7c55101e 100644 --- a/Debugger.Core/Src/Threads/Function.cs +++ b/Debugger.Core/Src/Threads/Function.cs @@ -313,7 +313,7 @@ namespace Debugger for (int j = 0; j < sequencePointCount; j++) { // Step over compiler generated sequences and current statement // 0xFeeFee means "code generated by compiler" - if (sequencePoints[j].Line == 0xFeeFee || j == i || ( j > i && sequencePoints[j].Line == sequencePoints[i].Line)) { + if (sequencePoints[j].Line == 0xFeeFee || j == i || ( j > i && (sequencePoints[j].Line == sequencePoints[i].Line && sequencePoints[i].Document.URL == sequencePoints[j].Document.URL))) { // line + document must be same // Add start offset or remove last end (to connect two ranges into one) if (stepRanges.Count > 0 && stepRanges[stepRanges.Count - 1] == sequencePoints[j].Offset) { stepRanges.RemoveAt(stepRanges.Count - 1);