Debug¶
Tools for diagnosing programs.
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" }.
Enable tracing in the playground or runtime to see EXPLAIN output.
Run it: Debugging example (toggle tracing).