From 6dce1f42f168ea1de4dbec166ddaebb16dc1d7e2 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 6 Feb 2007 03:42:09 +0000 Subject: [PATCH] Added a small debug function for troubleshooting that can be activated using /clique debug. --- Clique.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Clique.lua b/Clique.lua index 6cfa9b9..13086e2 100644 --- a/Clique.lua +++ b/Clique.lua @@ -77,6 +77,10 @@ function Clique:Enable() end hooksecurefunc("CreateFrame", raidFunc) + + -- Create our slash command + self.cmd = self:InitializeSlashCommand("Clique commands", "CLIQUE", "clique") + self.cmd:RegisterSlashHandler("debug - Enables extra messages for debugging purposes", "debug", "ShowAttributes") end function Clique:EnableFrames() @@ -485,4 +489,11 @@ end) -- 100 pause, default mult -- min: 16095 -- max: 20052 --- cycle: 17857 \ No newline at end of file +-- cycle: 17857 + +function Clique:ShowAttributes() + self:Print("Enabled enhanced debugging.") + PlayerFrame:SetScript("OnAttributeChanged", function(...) self:Print(...) end) + self:UnregisterFrame(PlayerFrame) + self:RegisterFrame(PlayerFrame) +end -- 1.7.9.5