Download
(15Kb)
Download
Updated: 10-31-20 05:44 PM
Pictures
File Info
Compatibility:
Shadowlands pre-patch (9.0.1)
Updated:10-31-20 05:44 PM
Created:04-03-09 12:34 PM
Downloads:6,206
Favorites:62
MD5:

Lua Browser  Popular! (More than 5000 hits)

Version: 20.10.31
by: Aezay [More]

Description
Using Lua Browser allows you to easily browse through the Lua environment, tables, widgets and other values.
This can be quite useful when developing addons.

The currently browsed root will have a reference in the global variable "lbRoot", this makes it easier to manipulate it using /run scripts and the likes.

Please note this is an advanced tool, do not use this unless you know what you are doing.

Controls
The Left click action depends on which item is under the mouse.
Tables and Widgets will be opened like a folder in normal file browsing. Hold down shift to try and open any possible metatables this table might have.
For functions, the function will be called, if you hold down shift, it will be called with "self" as the first parameter.

Right clicking will go back in history, to the previous browsed table.
If you hold down shift while right clicking, the key will be deleted!

You can link things into the chat editbox like normally. Open up the chat editbox, hold down shift and click an item.

Slash Commands
The slash command for Lua Browser is "/lb". Below are the valid parameters.

"/lb code <code>"
Executes the code and browses the result.

"/lb filter <word>"
You can use this to filter out what is shown, very useful in _G.

"/lb mouse"
Sometimes frames are unnamed, and the easiest way to get to them is through GetMouseFocus().

"/lb mousemeta"
Allows you to browse the meta table of the widget under the mouse.

Lua Browser Changes | 2020 Oct 31
- Updated the TOC version to 90001 for the Shadowlands 9.0.1 pre-patch.
- Frames that use backdrops are now created using the "BackdropTemplate".
- Updated the AzDropDown library to Rev 14.
- Updated the AzDialog library to Rev 02.
- No longer at the "DIALOG" strata.

Lua Browser Changes | 2018 Aug 13
- Added new "_G" button, which will navigate to the global _G table.
- Added new "Code" button, that will popup a dialog to enter in code. Hold Shift to access the metatable. It works exactly as the slash command "/lb code <code>" and "/lb codemeta <code>".
- Added new "Filter" button, clicking it will ask for an input of the new filter. To clear the filter, enter nothing in the dialog, or shift-click the button.
- Removed the "Clear Filter" button, the filter can now be cleared clicking the new "Filter" button while holding Shift.

Lua Browser Changes | 2018 Aug 12
- Fixed an error that could occur if a table had a key named "GetName" and was not a widget.
- Frame strata changed to "DIALOG".
- Does a better job at showing the name and object type of the current widget table.
- Updated the AzDropDown library.

Lua Browser Changes | 2018 Jul 25
- Updated the TOC version to 80000 for the Battle for Azeroth 8.0 pre-patch.
- Fixed some minor navigation issues when using the mouse buttons.

Lua Browser Changes | 2010 Nov 10
- Changed the TOC version to 40000 for the 4.0.1 pre Cataclysm patch.
- Added a "/lb codemeta" slash command. This works exactly like the "/lb code" slash command, but will return the metatable of the code.
- Added "/luabrowser" as an alternative, to the already existing "/lb" slash command.
- Filters now searches the value of strings and numbers for a match.
- If the currently browsed root is a frame, and that frame has a name, it will now be display in the top right.

Lua Browser Changes | 2010 Jun 28
- Corrected the error that could happen when clicking on an item, which was introduced with the latest "ChatFrameEditBox" fix.

Lua Browser Changes | 2010 Jun 27
- Fixed the ChatFrameEditBox issues.

Lua Browser Changes | 2010 Feb 27
- Changed the TOC version to 30300 for the 3.3 patch.

Lua Browser Changes | 2009 May 18
- Changed the TOC version to 30100 for the 3.1 patch.
- If you move the mouse over the window showing the address of the current root, it will show a tip with how many of each data type is in this table.
- Filter settings are now saved per root, instead of a global setting, this should make browsing back and forth from _G a lot more pleasent.
- Did a few code optimisations.

Lua Browser Changes | 2009 Apr 07
- Fixed a bug that caused not all keys in a table to be shown.

Lua Browser Changes | 2009 Apr 06
- Now sets the global variables "lbRoot" to the current browsed table. This is done so you can easily work with the table in a custom script using "/run" or similar.
- Some other issues related to showing tables with metatables, is now fixed by using rawget() everywhere instead of normal table access.
- Removed some global pollution from the sort function.
- Now shows a the current table address next to the close button.
- If a table had a metatable with an "__index" function, which would return a value or give an error when accessing table[0], Lua Brower were not able to detect widget objects. This problem has been resolved by testing existance with rawget().
- Fixed an error if a table key was anything but a string or number.
- If you hold down shift when selecting a type filter, it will be selected exclusivly.
- Added the slash command "/lb mousemeta", allows you to browse the meta table of the widget under the mouse.
- Removed the global slash command "/lb global <key>", use "/lb code <code>" instead.
Optional Files (0)


Post A Reply Comment Options
Unread 10-06-12, 08:00 AM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 737
Uploads: 18
Lombra
That is not a bad idea, however, there is one problem I can think of. If a table has a GetName() function, does not mean it is a frame. So calling the GetName() directly with the table as a parameter, could cause an error if it is nothing but a simple table that happens to have a GetName() function. Is there a way to verify that a table is an actual frame, perhaps check if the 0 userdata exists?
Last edited by Aezay : 10-06-12 at 08:02 AM.
Report comment to moderator  
Reply With Quote
Unread 10-05-12, 04:58 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
Hey,
any chance you could make a separate frame on which to call GetName on "browsed" tables, like so:
Code:
utilityFrame.GetName(browsedTable)
Reason for this being not to invoke any metamethod on the browsed table by trying to access its GetName method.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 06-27-10, 03:13 PM  
Nafe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 35
Uploads: 12
Originally posted by Aezay
Nafe
Thanks for posting this info, exactly what I needed. However, where did you read this, I've tried downloading the latest Interface Addon Kit, but it seems to be the 3.3.0 and not the 3.3.5, so it doesn't contain this function.
I just extracted the FrameXML code for patch 3.3.5 using the addon kit I downloaded around a year ago.

I saw this change when doing a diff between the 3.3.3a and 3.3.5 builds.
Report comment to moderator  
Reply With Quote
Unread 06-27-10, 08:03 AM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 737
Uploads: 18
Nafe
Thanks for posting this info, exactly what I needed. However, where did you read this, I've tried downloading the latest Interface Addon Kit, but it seems to be the 3.3.0 and not the 3.3.5, so it doesn't contain this function.
Report comment to moderator  
Reply With Quote
Unread 06-26-10, 05:08 AM  
Nafe
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 35
Uploads: 12
3.3.5 fix

It's a bit hacky, but replace all instances of ChatFrameEditBox with ChatEdit_GetActiveWindow() and you should be good to go.
Report comment to moderator  
Reply With Quote
Unread 02-28-10, 02:32 PM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 737
Uploads: 18
Ferous
Nope, I am not. But I wanted to see the effect of updating the TOC of all my addons, no code was changed at all. So it's pretty much just a shameless bump of my addons, with the plus side that I hopefully wont get more messages asking for a TOC update
Report comment to moderator  
Reply With Quote
Unread 02-27-10, 05:03 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 563
Uploads: 10
Are you playing again Aezay?
Report comment to moderator  
Reply With Quote
Unread 06-01-09, 03:39 PM  
Tithulta
A Black Drake
 
Tithulta's Avatar
AddOn Author - Click to view AddOns

Forum posts: 80
File comments: 38
Uploads: 1
could this be used to just view the contents of addons like ct mailmod or expense history? Im trying to find out how much gold was stolen off one of my characters by my nephew.
Report comment to moderator  
Reply With Quote
Unread 05-18-09, 12:36 PM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 737
Uploads: 18
Falter
Hehe, and you're free to do so, all I really meant with it, was as this is a developer tool with the ability to wreck some havoc, I better put up some kind of a warning
Report comment to moderator  
Reply With Quote
Unread 05-17-09, 03:53 PM  
Falter
A Deviate Faerie Dragon

Forum posts: 19
File comments: 35
Uploads: 0
do not use this unless you know what you are doing.
I don't know what I'm doing, but I'm going to use it anyway, just because you said that an I love the rest of your addons.
Report comment to moderator  
Reply With Quote
Unread 04-07-09, 08:02 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
Okay, thanks! Once again, neat addon.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 04-07-09, 06:16 AM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 737
Uploads: 18
Lombra
Yes, sorry about that, there was a little bug in yesterday's release. Just uploaded a new one which should work properly.
Report comment to moderator  
Reply With Quote
Unread 04-07-09, 06:02 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
Hello,
neat addon, however the scroll frame seems to be a bit broken. It's hard to explain, probably easier if you can see for yourself, but it's as if... first it shows items 1, 3, 5, then you scroll and it shows items 2, 4, 6. Something like that.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 04-06-09, 08:51 PM  
HonorGoG
An Aku'mai Servant
 
HonorGoG's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 102
Uploads: 6
Well...

If nothing else, this will save a bunch of "print(somethinghere)" entries inside of WoWLua which is also a good tool to have.

So this addon is a good thing.
Report comment to moderator  
Reply With Quote
Unread 04-04-09, 01:06 AM  
ALZA
A Deviate Faerie Dragon
 
ALZA's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 11
Uploads: 1
Thanks a lot for this great addon!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.