debugger: show current line, fix for #6150

pull/5010/head
Alex Kocharin 2013-09-29 00:26:15 +04:00 committed by Ben Noordhuis
parent 60a1dbddd2
commit 028e652a73
1 changed files with 8 additions and 1 deletions

View File

@ -1153,7 +1153,14 @@ Interface.prototype.list = function(delta) {
line = lines[i];
}
self.print(leftPad(lineno, breakpoint && '*') + ' ' + line);
var prefixChar = ' ';
if (current) {
prefixChar = '>';
} else if (breakpoint) {
prefixChar = '*';
}
self.print(leftPad(lineno, prefixChar) + ' ' + line);
}
self.resume();
});