Renderingen-US

Experimental through version 1. Version 0 was alpha. This is the first language release: the interface is relatively stable, not frozen. Nothing is promised stable until version 2.

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 error.

Syntax: debug <expression>

Category#

console

Examples#

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

Writes a debug value to standard error.

# =============================================================================
# debug — Writes a debug value to standard error.
# =============================================================================
#
# 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"
}