This addon is a development addon that lets you display contents of variables and continually updates the result.
Features
- Continuous colored output of values, tables, selected functions/methods, and ui objects
- Left-Click any key of a table to open a new watcher watching for this key
- Try /rewatch after reloading your ui, you'll love it
- Use your scrollwheel...
- Right-Click the title bars for a dropdown menu
- The white square in the lower right corner of a watcher window is actually a resize-handle... sorry for the missing texture. Window sizes are saved through sessions
Slash-Commands
- /watch [expression]
- Watches defined expression, if you skip the expression part, it will watch for "nil" wich is quite useless though.
- /unwatch <id>
- Removes a watcher with <id>, ID's are shown in the watcher window title as a number between ((double parentheses)).
- /rewatch
- Restores watchers from the last session. This might yield unexpected results if called more than once ...
Useful info
- You can watch for invalid expressions that might become valid sometime (or never, though that's not really useful), like MyAddonTable.frameindex:GetTop() might throw an error normally if the frame does not exist. This error will even be printed in the watcher frame, but if you create it during your session, the watcher will print the correct value.
- Syntax errors should be detected when executing the slash command and should prevent generating a watcher.
- Your expression will result in parsing a code like "return {expression}" (the curly braces are really there)
Stuff that is planned
- Use a timer lib for updating, but do not use LibStub, so it will work even if a future untested version of the timer brought in from another addon is bugged. This is a debugging addon, it would be a shame if it was not working due to such an issue.
- Show/Hide unsafe functions - Often you actually don't care about table values that contain functions, especially those that are not listed as safe methods, so I'd like to add an option to the dropdown to hide/show those
- Change expression - Just a dropdown menu item to change the expression
- A scrollbar... well...
- Highlight lines that change (I already know how to do it, just can't decide on the color... :D)
------------------------------------------------------------------------
r8 | watchout | 2009-07-27 17:46:14 +0000 (Mon, 27 Jul 2009) | 3 lines
Changed paths:
M /trunk/Watch.lua
* Added links to table keys - click on a table key to open a new watcher watching on this key
* Better watcher position saving and restoring
* the watcher-id is now shown in the title enclosed in double-parentheses
------------------------------------------------------------------------
r7 | watchout | 2009-07-27 17:01:47 +0000 (Mon, 27 Jul 2009) | 1 line
Changed paths:
M /trunk/Watch.xml
test commit
------------------------------------------------------------------------
r6 | watchout | 2009-07-23 08:46:02 +0000 (Thu, 23 Jul 2009) | 1 line
Changed paths:
M /trunk/Watch.lua
Watch.lua removed some debug output, reduced update interval
------------------------------------------------------------------------
r5 | watchout | 2009-07-16 08:12:35 +0000 (Thu, 16 Jul 2009) | 1 line
Changed paths:
M /trunk/Watch.lua
SetToplevel(true) on frames
------------------------------------------------------------------------
r4 | watchout | 2009-07-15 02:51:52 +0000 (Wed, 15 Jul 2009) | 1 line
Changed paths:
M /trunk/Watch.lua
fixed frame re-use bug
------------------------------------------------------------------------
r3 | watchout | 2009-07-15 01:11:16 +0000 (Wed, 15 Jul 2009) | 1 line
Changed paths:
M /trunk/Watch.lua
M /trunk/Watch.toc
saving window position now...
------------------------------------------------------------------------
r2 | watchout | 2009-07-14 23:51:05 +0000 (Tue, 14 Jul 2009) | 1 line
Changed paths:
A /trunk/SafeFuncs.php
A /trunk/SafeFuncs.txt
A /trunk/Test.xml
A /trunk/Watch.lua
A /trunk/Watch.toc
A /trunk/Watch.xml
initial commit
------------------------------------------------------------------------
r1 | root | 2009-07-14 23:46:41 +0000 (Tue, 14 Jul 2009) | 1 line
Changed paths:
A /branches
A /tags
A /trunk
"watch/mainline: Initial Import"
------------------------------------------------------------------------
Installation Guide
- Exit "World of Warcraft" completely
- Download the mod you want to install
- Make a folder on your desktop called "My Mods"
- Save the .zip/.rar files to this folder.
- If, when you try to download the file, it automatically "opens" it... you need to RIGHT click on the link and "save as..." or "Save Target As".
- Extract the file - commonly known as 'unzipping'
Do this ONE FILE AT A TIME!
- Windows
- Windows XP has a built in ZIP extractor. Double click on the file to open it, inside should be the file or folders needed. Copy these outside to the "My Mods" folder.
- WinRAR: Right click the file, select "Extract Here"
- WinZip: You MUST make sure the option to "Use Folder Names" is CHECKED or it will just extract the files and not make the proper folders how the Authors designed
- Mac Users
- StuffitExpander: Double click the archive to extract it to a folder in the current directory.
- Verify your WoW Installation Path
That is where you are running WoW from and THAT is where you need to install your mods.
- Move to the Addon folder
- Open your World of Warcraft folder. (default is C:\Program Files\World of Warcraft\)
- Go into the "Interface" folder.
- Go into the "AddOns" folder.
- In a new window, open the "My Mods" folder.
- The "My Mods" folder should have the "Addonname" folder in it.
- Move the "Addonname" folder into the "AddOns" folder
- Start World of Warcraft
- Make sure AddOns are installed
- Log in
- At the Character Select screen, look in lower left corner for the "addons" button.
- If button is there: make sure all the mods you installed are listed and make sure "load out of date addons" is checked.
- If the button is NOT there: means you did not install the addons properly. Look at the above screenshots. Try repeating the steps or getting someone who knows more about computers than you do to help.
Translations
When you download a mod, please be sure that the mod is compatible with your translation of wow. Some mods only work on the US versions, while some only work on some of the various European versions. These variations are called "Localizations".
TOC Numbers (Out of Date Mods)
When Blizzard patches WoW, they change the Interface number. This means that all mods will be "out of date" unless or until the author releases a new version for that interface. Some people go into the .toc files and update the numbers themselves, but this is STRONGLY advised against as it will cause problems locating possible incompatibilities addons. When you log into WoW after a patch, you DO NOT have to delete your interface directory. All you have to do is simply tell WoW to ignore the interface numbers and load all the mods anyway. All you have to do is, while at the "character select" screen, look in the lower left corner and click on the "addons" button. A window will pop up listing all your installed mods.
If you look in the upper left corner of that window there should be a box that says "Load Out of Date AddOns". You want to CHECK this box. Now simply go into WoW normally and all your mods should load. As of the 1.9 patch, you will have to do this after EVERY patch/update that Blizzard posts! If you encounter any problems with a mod after a patch, please be sure to let the author of the mod know so they can fix it.
See also: About "Out Of Date AddOns"
Mac Support
WoW addons are not platformed based. As such, they can be used on either Mac or PC. You can extract both .zip and .rar files on a Mac using StuffitExpander.
Directory Structure
World of Warcraft
|_ Interface
|_AddOns
|_*AddonName*
|_ *AddonName*.toc
|_ *AddonName*.xml
|_ *AddonName*.lua
|_ (possibly others as well)...