Not everything is documented so we generally look through the code from Blizzard or other addons. If you don't know what a specific API does it's best to just reference it in FrameXML. Export, clone, download or bookmark Blizzard's user interface code a.k.a.There is the /dump slash command for general debugging, /etrace for showing events and /fstack for debugging visible UI elements.Get an error reporting addon like BugSack or turn on /console scriptErrors 1.When updating addon code use /reload to test the new changes, you may want to put it on a macro hotkey as well as temporarily disabling any unnecessary addons that would increase loading time.World of Warcraft\_retail_\Interface\AddOns\HelloWorld
Go to your AddOns folder and create a new folder with the following files:
We won't be using XML since most things that are possible in XML can also be done in Lua. To quickly turn scripts like this into an addon, just remove the "/run" part and paste it into Creating an AddOnĪn addon consists of Lua/XML files and a TOC file. You can execute Lua scripts from the chat window or in a macro with the /run or /script command.