Skip to content

Commit

Permalink
Re-enable detailed variable debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Sep 9, 2024
1 parent e3f38e6 commit 2439c75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions State.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4685,12 +4685,12 @@ do
end

-- Cache the value in case it is an intermediate value (i.e., multiple calculation steps).
--[[ if debug then
if debug then
conditions = format( "%s: %s", passed and "PASS" or "FAIL", scripts:GetConditionsAndValues( scriptID ) )
valueString = format( "%s: %s", state.args.value ~= nil and tostring( state.args.value ) or "nil", scripts:GetModifierValues( "value", scriptID ) )

Hekili:Debug( var .. " #" .. i .. " [" .. scriptID .. "]; conditions = " .. conditions .. "\n - value = " .. valueString )
end ]]
end
state.variable[ var ] = value
cache[ var ][ pathKey ] = value
end
Expand Down

0 comments on commit 2439c75

Please sign in to comment.