Download
(5 Kb)
Download
Updated: 07/31/15 09:32 AM
Compatibility:
Update 6 (1.6.5)
Updated:07/31/15 09:32 AM
Created:07/31/15 09:32 AM
Monthly downloads:15
Total downloads:1,183
Favorites:1
MD5:
Mer Undefined Globals Catcher
Version: 1.0
by: merlight [More]
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:
  1. if not SomeControl then
  2.     CreateControl("SomeControl", ...)
  3. end
Optional Files (0)


There have been no comments posted to this file.
Be the first to add one.



Category Jump: