From 282cce1ea58b6a450c397af22b64fac8fd03d579 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 3 Jan 2011 12:58:19 -0800 Subject: [PATCH] debugger: don't display whole path of scripts --- lib/_debugger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index bc1d8100567..8c7c2a7ff09 100644 --- a/lib/_debugger.js +++ b/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'; } } }