SplitScript reference / Language / debug
debug
keyword
debug statement
Keeps a development-only statement in debug builds.
Debug statements, bindings, globals, and debug fn declarations are fully parsed and type-checked in every profile, then erased from release lowering before dependency and reachability discovery. Debug-only names may only be used from debug code. Terminating statements remain rejected.
Examples
Add development-only logging
debug print(`level: {current.level}`)