View Single Post
03/12/23, 03:58 AM   #17
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,913
MerTorchbug UI is more user friendly than zgoo imo, but that's up to you in the end.
Both inspect vatisbles so that you see the values. For example if you define a global variable table MyAddon = {} you can inspect it via /tb MyAddon or /zgoo MyAddon (type to the chat editbox just like you would run a /script).

The ui will show you the table then and all of its content. You can click tables in that table, or see the variables. If the insoected variable is a control you can see its values like height width anchor hidden etc.
This way you can see values of variables instead of having to write them to the chat via d() debug messages.

If you use /tb alone you'll see the global inspector showing you all kind of tabs like loaded addons, loaded libraries, String constants SI_* which can be used with the GetString function, constsnts in the game like BAG_BACKPACK and its value, global classes like ZO_Smithing and its created object SMITHING, fonts and so on.

All those global variables are stored inside one global table _G in lua. So basically all is stored in tables in lua and with merTorchbug or zgoo you can insprct this tables at runtime.
  Reply With Quote