WoW PrintTracer addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon PrintTracer

PrintTracer

Game Version: 2.5.1
Total Downloads: 312
Updated: Jul 5, 2021
Created: Jul 23, 2017
download PrintTracerDownload Earlier Versions

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 PrintTracer 2021-07-04-release-bcc releaseDownload
2021-07-04-release-classic release 1.85 KB Jul 5, 2021 1.13.7 0 download PrintTracer 2021-07-04-release-classic releaseDownload
2021-07-04-release release 1.85 KB Jul 5, 2021 9.1.0 0 download PrintTracer 2021-07-04-release releaseDownload
2018-08-01-release release 974 Bytes Aug 1, 2018 8.0.1 130 download PrintTracer 2018-08-01-release releaseDownload
2017-09-03-release release 983 Bytes Sep 4, 2017 7.3.0 54 download PrintTracer 2017-09-03-release releaseDownload
2017-09-03-release release 956 Bytes Sep 4, 2017 7.3.0 20 download PrintTracer 2017-09-03-release releaseDownload
2017-08-31-release release 987 Bytes Aug 31, 2017 7.3.0 38 download PrintTracer 2017-08-31-release releaseDownload
2017-07-23-release-3 release 978 Bytes Jul 23, 2017 7.2.5 31 download PrintTracer 2017-07-23-release-3 releaseDownload
2017-07-23-release-2 release 970 Bytes Jul 23, 2017 7.2.5 21 download PrintTracer 2017-07-23-release-2 releaseDownload
2017-07-23-release release 850 Bytes Jul 23, 2017 7.2.5 18 download PrintTracer 2017-07-23-release releaseDownload

Description

Share this:

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

 

 

Comments

Add a comment