การเรนเดอร์th-TH

ดู

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.

Writes a debug value to standard output.

Syntax: ดู <expression>

Category#

output

Examples#

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

Writes a debug value to standard output.

# =============================================================================
# ดู — Writes a debug value to standard output.
# =============================================================================
#
# What this teaches:
#   • Diagnostic output — `ดู` for inspection-style debugging, distinct from `บันทึก` and `เตือน`
#   • Output variety — Faber provides multiple output functions for different purposes
#
# Common mistakes:
#   • confusing ดู (diagnostic output) with ทดสอบ (test block) or ยืนยัน (assertion) — ดู is for inspection, not validation
#
# See also: เขียน, เตือน
# =============================================================================




# ดู diagnostic output
#
# ดู <expr>  -- emit a vide-style inspection diagnostic (distinct from บันทึก/mone)
#
# GRAMMAR:
#   outputStmt :← 'ดู' expr
#
# EXPECTED OUTPUT:
#   vide-style diagnostic: "inspecta"

main {
    debug "inspecta"
}

Expected output:

inspecta