GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

7M Downloads

Provide Debugging on Macro Execution

TimothyLuke opened this issue ยท 2 comments

commented

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

commented

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.