method
Log.debug
Log.debug(msg, [key, value]...) -> void
Logs msg at the **debug** level (1) — development-time detail that is useful while building a feature but noise in a shipped game. It prints on stderr as [DEBUG] msg with any structured key=value fields, when the Log.set_level threshold is 1 or lower. Reach for it to trace state transitions, loaded assets, or the values feeding a calculation you are not yet sure of.
Parameters
msgthe message stringExample
program Debug {
entry {
Log.set_level(1)
Log.debug("player state", "hp", 100, "phase", "combat")
}
}