debugger: don't display whole path of scripts

pull/5370/head
Ryan Dahl 2011-01-03 12:58:19 -08:00
parent 6593a96373
commit 282cce1ea5
1 changed files with 2 additions and 1 deletions

View File

@ -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';
}
}
}