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

Commit

Permalink
debugger: don't display whole path of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 3, 2011
1 parent 6593a96 commit 282cce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,8 @@ Interface.prototype.printScripts = function(displayNatives) {
if (typeof script == 'object' && script.name) {
if (displayNatives || script.name == client.currentScript || !script.isNative) {
text += script.name == client.currentScript ? '* ' : ' ';
text += script.name + '\n';
var n = require('path').split(script.name);
text += n[n.length - 1] + '\n';
}
}
}
Expand Down

0 comments on commit 282cce1

Please sign in to comment.