WoW PrintTracer addon Shadowlands/classic 2020
logo
wow addon PrintTracer

PrintTracer

Game Version: 8.0.1
Total Downloads: 261
Updated: Aug 1, 2018
Created: Jul 23, 2017
download PrintTracerDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
2018-08-01-release release 974 Bytes Aug 1, 2018 8.0.1 103 download PrintTracer 2018-08-01-release releaseDownload
2017-09-03-release release 983 Bytes Sep 4, 2017 7.3.0 50 download PrintTracer 2017-09-03-release releaseDownload
2017-09-03-release release 956 Bytes Sep 4, 2017 7.3.0 15 download PrintTracer 2017-09-03-release releaseDownload
2017-08-31-release release 987 Bytes Aug 31, 2017 7.3.0 34 download PrintTracer 2017-08-31-release releaseDownload
2017-07-23-release-3 release 978 Bytes Jul 23, 2017 7.2.5 28 download PrintTracer 2017-07-23-release-3 releaseDownload
2017-07-23-release-2 release 970 Bytes Jul 23, 2017 7.2.5 17 download PrintTracer 2017-07-23-release-2 releaseDownload
2017-07-23-release release 850 Bytes Jul 23, 2017 7.2.5 14 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