Skip to content

Commit 028e652

Browse files
rlidwkabnoordhuis
authored andcommitted
debugger: show current line, fix for #6150
1 parent 60a1dbd commit 028e652

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/_debugger.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,14 @@ Interface.prototype.list = function(delta) {
11531153
line = lines[i];
11541154
}
11551155

1156-
self.print(leftPad(lineno, breakpoint && '*') + ' ' + line);
1156+
var prefixChar = ' ';
1157+
if (current) {
1158+
prefixChar = '>';
1159+
} else if (breakpoint) {
1160+
prefixChar = '*';
1161+
}
1162+
1163+
self.print(leftPad(lineno, prefixChar) + ' ' + line);
11571164
}
11581165
self.resume();
11591166
});

0 commit comments

Comments
 (0)