Renderingen-US

debug

Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.

Writes a debug value to standard output.

Syntax: debug <expression>

Category#

output

Examples#

radix/corpus/vide/vide.fab (canonical · keyword)#

Writes a debug value to standard output.

# =============================================================================
# debug — Writes a debug value to standard output.
# =============================================================================
#
# What this teaches:
#   • Diagnostic output — `debug` for inspection-style debugging, distinct from `print` and `warn`
#   • Output variety — Faber provides multiple output functions for different purposes
#
# Common mistakes:
#   • confusing debug (diagnostic output) with test (test block) or assert (assertion) — debug is for inspection, not validation
#
# See also: write, warn
# =============================================================================




# debug diagnostic output
#
# debug <expr>  -- emit a vide-style inspection diagnostic (distinct from print/mone)
#
# GRAMMAR:
#   outputStmt :← 'debug' expr
#
# EXPECTED OUTPUT:
#   vide-style diagnostic: "inspecta"

main {
    debug "inspecta"
}

Expected output:

inspecta