Wikia

WoWWiki

Getting more useful errors

Talk0
101,312pages on
this wiki

Add the following function to your Addon's LUA file:

function ErrorWithStack(msg)
   msg = msg.."\n"..debugstack()
   _ERRORMESSAGE(msg)
end

Add the following line to your Addon's Init function:

seterrorhandler(ErrorWithStack)

You're done :-).

An alternative is to install the Swatter Add-on available at http://auctioneeraddon.com/dl/Swatter/

Around Wikia's network

Random Wiki