Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
debugger: show current line, fix for #6150
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka authored and bnoordhuis committed Oct 1, 2013
1 parent 60a1dbd commit 028e652
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 028e652

Please sign in to comment.