Browse Source

debugger: don't display whole path of scripts

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
282cce1ea5
  1. 3
      lib/_debugger.js

3
lib/_debugger.js

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

Loading…
Cancel
Save