Simple utility to facilitate finding typos in global object access, especially UI errors of this kind:
Code:
17552056426385430174:3: attempt to index a nil value
stack traceback:
17552056426385430174:3: in function '(main chunk)'
Only enable this add-on when you're expecting such UI errors. Keep it disabled while playing, it hinders performance.
A list of failed _G lookups, created with Circonian's
LibMsgWin and initially hidden, can be toggled with this command:
/undefs
Bear in mind that "undefined" here doesn't automatically mean bugged code. A very common pattern for creating controls when needed does a lookup for undefined object in the first pass, yet it's completely valid:
Lua Code:
if not SomeControl then
CreateControl("SomeControl", ...)
end