WhatAddon
Short Description
Identify which addon caused Lua errors, see summaries and history, and quickly
disable offenders. Popups are suppressed in combat, arenas, and battlegrounds,
then shown afterwards.
Long Description
Overview
WhatAddon replaces the default Lua error experience with a focused workflow:
immediately attribute errors to the responsible addon, give you a clear
summary and history, and offer quick actions so you can keep playing.
Key Features
-
Accurate addon detection from error text and stack traces
(works with truncated paths and Windows/Unix slashes).
-
One‑click Disable for the offending addon (applies on next
reload if needed).
-
Error History pane with per‑addon counts, compact stats
(First, Last, Rate), and quick access to details.
-
Details view listing recent errors with relative timestamps
(e.g., “7 minutes ago”).
-
Popup suppression in combat, arenas, and
battlegrounds with automatic queuing; popups appear safely after.
-
Smart text handling: truncation prevents UI overflow;
high‑contrast dark background for readability.
- Saved history across sessions via saved variables.
How It Works
The addon hooks the global error handler to capture every Lua error. It parses
the message and stack for
Interface/AddOns/<AddonName> patterns to identify the
source addon. Errors are recorded to WhatAddonDB and summarized
in the UI.
When Do Popups Show?
- Immediately when a new error occurs and auto‑show is enabled.
-
Suppressed (queued) while in combat, arenas, or battlegrounds. A single chat
notice informs you that popups are deferred.
-
When you leave those states, the next queued error is shown automatically.
Slash Commands
/whataddon history – Open the error history.
/whataddon clear – Clear the saved error history.
/whataddon debug – Print a quick summary to chat.
Configuration
Defaults suppress popups in combat/arena/battleground. If you’d like UI
toggles in an options panel, let us know—hooks are ready and can be exposed
quickly.
Notes
-
Disabling an addon may require a reload/restart depending on the addon.
- This addon does not send data anywhere; everything is stored locally.