Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

Getting more useful errors

Last wiki revision 2010-06-01

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/

Categories

  • HOWTOs

Source

https://warcraft.wiki.gg/wiki/Getting_more_useful_errors · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.