WoW:Getting more useful errors: Difference between revisions
Jump to navigation
Jump to search
(Quick and easy way to get more useful errors) |
m (Move page script moved page Getting more useful errors to Getting more useful errors without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ood|FrameXML's default error handler now provides even more useful error logging.}} | |||
Add the following function to your Addon's LUA file: | Add the following function to your Addon's LUA file: | ||
Line 13: | Line 14: | ||
[[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/ |
Latest revision as of 04:48, 15 August 2023
This article or section contains information that is out-of-date.
|
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/