Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
2021-07-04-release-bcc release | 1.86 KB | Jul 5, 2021 | 2.5.1 | 0 | Download |
2021-07-04-release-classic release | 1.85 KB | Jul 5, 2021 | 1.13.7 | 0 | Download |
2021-07-04-release release | 1.85 KB | Jul 5, 2021 | 9.1.0 | 0 | Download |
2018-08-01-release release | 974 Bytes | Aug 1, 2018 | 8.0.1 | 130 | Download |
2017-09-03-release release | 983 Bytes | Sep 4, 2017 | 7.3.0 | 54 | Download |
2017-09-03-release release | 956 Bytes | Sep 4, 2017 | 7.3.0 | 20 | Download |
2017-08-31-release release | 987 Bytes | Aug 31, 2017 | 7.3.0 | 38 | Download |
2017-07-23-release-3 release | 978 Bytes | Jul 23, 2017 | 7.2.5 | 31 | Download |
2017-07-23-release-2 release | 970 Bytes | Jul 23, 2017 | 7.2.5 | 21 | Download |
2017-07-23-release release | 850 Bytes | Jul 23, 2017 | 7.2.5 | 18 | Download |
Description
PrintTracer hooks the print function in order to display the source of print function calls. This can help if you have some spammy debug text in your chat window and you don’t know what addon is writing it. Here’s the full code.
local oldprint = print print = function(text, ...) text = tostring(text) for n=1,select('#', ...) do local e = select(n, ...) text = text.." "..tostring(e) end local source = gsub(strtrim(debugstack(2,1,0),".\n"),"Interface\\AddOns\\","") text = "PT: print(\""..text.."\") called from "..source return oldprint(text) end
Add a comment