WoW:Getting more useful errors: Difference between revisions
Jump to navigation
Jump to search
(Quick and easy way to get more useful errors) |
(added information for swatter) |
||
Line 13: | Line 13: | ||
[[Category:HOWTOs|Get More Useful Errors]] | [[Category:HOWTOs|Get More Useful Errors]] | ||
An alternative is to install the Swatter Add-on available at http://auctioneeraddon.com/dl/Swatter/ |
Revision as of 10:16, 2 January 2007
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/