mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
debugger: don't display whole path of scripts
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user