при сравнении на совпадение строки следующей операции, добавлена проверка на совпадение исходного файла.

This commit is contained in:
Slav76 2015-10-23 17:59:34 +10:00
parent 249d19b5fa
commit 9318d45f85

View file

@ -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);