WatchIt Debug Tool

Development Tools Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 9 Monthly Downloads
  • Supports: 5.4.2
  • 1,348 Total Downloads
  • Updated Mar 11, 2014
  • Created Aug 14, 2013
  • 4 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: Public Domain
  • Newest File: WatchIt Debug Tool v1.03

About WatchIt Debug Tool

This is a little utility for developers, that allows you to conveniently view complex variables.

To view a global variable named myTable, simply run the command:

WatchVar ('myTable')

The function returns the frame it creates so you can reposition it from your code. You can also move it freely from the GUI, and scale it by pressing ctrl and using the mouse wheel. As of v1.02, there is also a slash command so you can simple write /watch myTable right there in your chat box. Note: You can use also use the above methods to watch subtables like so: /watch myTable[idx1].subtable[3].

At the moment this only works on global variables, but since you'll probably be using it to view tables it's easy enough to create a global reference.

To create a little frame where you can easily watch a changing value:

frmWatch = CreateWatchFrame ('window_title')
frmWatch:AdjustWidth (150)
...
-- somewhere, presumably in an event function
frmWatch:LoadValue (value)

Feature ideas and bug reports are, as usual, extremely welcome!

Version 1.03

  • Visual redesign

Version 1.02

  • Added slash command
  • Added the ability to directly watch subtables
  • Seriously improved display of tables and stuff

Version 1.01

  • Added watch frames

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes