Debug¶
Tools for diagnosing programs.
Functions¶
CHECKPOINT(label?)→ marks a step; returnstrue. Useful for profiling or logging.ASSERT(cond[, msg])→ errors ifcondis falsey; otherwise returnstrue. Provide a message for clearer failures.EXPLAIN(varName)→ provenance info for a named variable when tracing is enabled; otherwise returns{ "var": name, "info": "no provenance" }.
Example¶
Notes¶
- Enable tracing in the Playground or runtime to see
EXPLAINoutput.