App: 1.7.2
Web: 2.1.18

Addon Details

Addon ID: 22083
Addon Version: 1.0
Expansion: 3.3.5
Upload date: May 26, 2026
Last Updated: May 26, 2026
Downloads: Less than 100
Website: Source Link




LuaBugViewer

A modern, modular Lua error catcher for WoW 3.3.5a. Captures errors as they happen and shows them in a clean viewer window, with full copy-paste support so you can paste a clean stack trace.

A drop-in replacement for BugGrabber + BugSack, with no Ace3 / LibStub / LibDataBroker dependencies.

Download

Download LuaBugViewer.zip - includes GP_Lib

What it does

  • Captures every Lua error via a properly chained seterrorhandler - Blizzard's default error popup (and anything else hooked in) still runs
  • Also captures ADDON_ACTION_BLOCKED and ADDON_ACTION_FORBIDDEN events
  • Deduplicates repeats: identical errors show as a single row with an xN counter
  • Throttles runaway error loops: pauses capture for 60s after more than 20 errors/sec
  • One-line yellow chat notification per new error (duplicates stay quiet)
  • "Lua Errors" button on the ESC (Game) menu with an unread-count badge
  • Two-pane viewer: error list on the left, full stack trace and locals on the right - both panes are selectable for Ctrl+C copy

Commands

CommandAction
/lbv (or /bug)Toggle the viewer window
/lbv clearWipe the current session's error log
/lbv countPrint the number of captured errors
/lbv chatToggle the chat-message notification
/lbv testerrorFire an intentional error to confirm capture works
/lbv helpList the available subcommands

How errors are stored

Errors live in memory for the current session only - they're not persisted to SavedVariables and /reload wipes the log. This keeps the SavedVariables file tiny and avoids the bloat that haunted long-running BugSack databases. Only your settings (chat-notification toggle, throttle limits, max stored count) persist across sessions in LuaBugViewerDB.

The log is capped at 100 errors by default; oldest entries drop off as new ones arrive.

Configuration

Settings live in the LuaBugViewerDB SavedVariable. Defaults:

KeyDefaultMeaning
notifyInChattruePrint a yellow [LBV] line on every new error
throttleRate20Errors per second that triggers a capture pause
throttleCooldown60Seconds capture stays paused after a burst
maxStored100Hard cap on the session log; oldest are dropped

Module layout

FilePurpose
Core.luaBootstrap, defaults, tiny pub/sub event bus
modules/SessionLog.luaIn-memory error store with dedup
modules/ErrorHandler.luaseterrorhandler chain, recursion guard, throttle
modules/Notifier.luaChat-frame notification on new errors
modules/Viewer.luaThe two-pane viewer window
modules/EscMenuEntry.luaESC-menu button + unread-count badge
modules/SlashCommand.lua/lbv and /bug handlers

Installation

Extract the zip into Interface/AddOns/. Both LuaBugViewer/ and GP_Lib/ are inside - drop them both in. LuaBugViewer will not load without GP_Lib.

More addons for Wrath of the Lich King

Discover other addons that might interest you