tekkub / spew

WoW Addon - Spews out lua

This URL has Read+Write access

tekkub (author)
Wed Oct 22 19:15:10 -0700 2008
commit  16812ef45bf49620e5a3714a7d95e2177aff03d2
tree    90205a8d1a1e14bfc192f2b2cc04401f3146cc95
parent  5707f78f78b8e7dc8b8c6d73db41364c038eff32
spew /
name age message
file LibStub.lua Sun Aug 03 16:42:30 -0700 2008 We don't need no stinking LibStub [tekkub]
file README.textile Loading commit data...
file Spew.lua
file Spew.toc
file changelog.txt
file tekKonfigButton.lua Wed Oct 22 19:15:10 -0700 2008 Add button to clear spewings [tekkub]
file tekPanelAuction.lua Sat Aug 30 17:10:08 -0700 2008 Embed update [tekkub]
README.textile

Spew is a dev tool based off Iriel’s DevTools and Ace2’s /dump commands. It does the same basic thing (running lua code snippets and printing out the results), but in a slightly different way.

Why did I create Spew?

  • I liked DevTools, but didn’t like it’s output style (sorry Iriel)
  • I liked Ace2’s style, but not it’s code (table recursion so deep you need a timer to ensure you don’t execute too long? Gag me with spoon!)
  • I hated how both these addons spammed up the chatframe

So what does Spew do? Simple, you give it a bit of lua and it evaluates it. If the result is a table or frame, it pops open a panel and dumps detailed info. It the result is a simple value or multiple values, it prints a single line is the chatframe. Like Ace2, Spew will call various :Get*, :Is* and :Can* functions on frames and outputs their results. It will also shallow-recurse one level into subtables, and print up to 5 values for each.

To run spew, simply type /spew some_lua_here. The frame can be opened by simply typing /spew

Spew can also list all visible frames under the mouse with the /spewmouse command.

Spew will, of course, take advantage of AddonLoader if it is present and not load until it’s slash command is used.

Links

Visit my site for more info.
Please report all bugs and feature requests to my Google Code tracker
Please direct all feedback and questions to my Google Groups mailinglist.