Massive is intended as a full suite of GUI-centric, diagnostic and tracking tools for the World of Warcraft. Primarily targeted at assisting in UI design, many of it's features aid in quick data tracking & locating of unknown data.
If you want to utilize the debug functions in your mod, register with LibStub by using:
local dbg = LibStub:GetLibrary("Massive")
if (not dbg) then return; end
/mass (or /massive)
obj NAME [depthLimit]
NAMEto the report window. Optionally use
depthLimitto limit the depth of the search. If none is provided,
depthLimitis set to 4.
VARcan be either a variable or a table of variables (will not track subtables or functions). Use "clear" or "erase" to clear the tracker window. If tracking a cvar, the defaults and min/max values will be shown as well.
find NAME [scope] [depthLimit]
scopecan be used to define where to begin the search and how deep to search. Optionally use
depthLimitto limit the depth of the search. If
scopeis a number,
depthlimitbecomes the value of
event FRAME [eventname]
eventnamecan be used to test the frame for a particular event registration.
cvar VAR [SETTING]
VARis the name of the CVar to set and
SETTINGis the value to set it to. If
SETTINGis omitted, variable returns to default value.
dbg.print(msg [, id] [, clear])
msg = the message to print to the report window id = (number) color code (1=blue, 2=green, 3=red, 4=cyan, 5=orange, 6=Yellow, 7=Purple, 9=grey, 10=white) clear = (boolean) erase previous message before printing
Checks tracked vars 10 times per second. To add new variables on the fly, use "/mass track varname" (can be a table too) var = (string) variable/table to track
Retrieves the x & y of anchor on frame (something GetPoint(n) fails at... who wrote that anyway). Alternatively, you can retrieve all anchor coordinates by specifying "all" as the anchor (order: tl, t, tr, l, r, bl, b, br). Returns a list in each case. frame = (string or table) the frame to retrieve info for anchor = (string) the anchor point to retrieve coords for (ie., "TOPLEFT")
Receives a string of either a var ("foo") or nested var ("table.subtable.foo") and returns the variable object
If you'd like to contribute to the project, please contact me with any suggestions you may have or post on the project site if you've discovered any undocumented issues. Alternatively, if you have a tool you'd like to incorporate into Massive and would like to become part of the development, let me know and I'd happy to consider it.