From 89da92dd05fc96fa15c2843b8b34575d13adf136 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Thu, 26 Aug 2021 22:05:51 +0100 Subject: [PATCH] Nasal/debug.nas:backtrace(): don't truncate filename. Truncating filenames in debug output is unhelpful. --- Nasal/debug.nas | 2 -- 1 file changed, 2 deletions(-) diff --git a/Nasal/debug.nas b/Nasal/debug.nas index 8f2fa51f7..774d32159 100644 --- a/Nasal/debug.nas +++ b/Nasal/debug.nas @@ -314,8 +314,6 @@ var backtrace = func(desc = nil, dump_vars = 1, skip_level = 0) { if ((var v = caller(i)) == nil) return caller(i - 1); var filename = v[2]; var line = v[3]; - if (size(filename) > 50) - filename = substr(filename, 0, 5)~"[...]"~substr(filename, -40); print(_section(sprintf("#%-2d called from %s:%d (%s) (locals %s):", i - skip_level, filename, line, funcname(v[1]), id(v[0])))); if (dump_vars) dump(v[0]);