Provide Debugging on Macro Execution
TimothyLuke opened this issue ยท 2 comments
Following on from #83 When a macro executes it is a black box. You cannot tell if a button works or fails.
Add the following debug to SEQUENCEDEBUG as an option for sequence execution.
Button, Spell, Success
Button, Spell, Fail, Cooldown
Button, Spell, Fail, GCD Cooldown
Button, Spell, Fail, Resource Unavailable
GetSpellCooldown = http://wowprogramming.com/docs/api/GetSpellCooldown
GCD Check - http://www.wowinterface.com/forums/showthread.php?t=52816
GCD Tracker - http://wowprogramming.com/snippets/Cooldown_Tracker_12
Is Usable - http://wowprogramming.com/docs/api/IsUsableSpell
My changing the onClick on https://github.com/TimothyLuke/GnomeSequenced-Enhanced/blob/master/GS-Core/Core.lua#L84
to
local OnClick = [=[
local step = self:GetAttribute('step')
print("step =" .. step)
self:SetAttribute('macrotext', self:GetAttribute('PreMacro') .. macros[step] .. self:GetAttribute('PostMacro'))
print(macros[step])
...
]=]
I can print the macro execution.