Reference
Debug
Debug
| Input | A label string and a value of any type. |
|---|---|
| Output | Prints the label and value to the console in the format [debug] label: value and returns the fully-evaluated value. For collections, all nested elements are recursively evaluated before printing and returning. |
Signature
debug(a: String, b: Any): AnyExample
debug("myList", [1, 2, 3]) // prints "[debug] myList: [1, 2, 3]" and returns [1, 2, 3]