The debug
function is established to print information of any objects to the console.
any = { String | Number | Boolean | Date | Array | Function | Object | Excel | Record | Result }
"hello world!".debug("test1");
(123).debug("test1");
(true).debug("test1");
(new Date()).debug("test2");
return (new Result()).runat().withData({
"#userId" : "Wang"
}.debug("test3")).debug("test4");
Calling | Returning |
---|---|
any. debug ( label ) |
String | Number | Boolean | Date | Array | Function | Object | Excel | Record | Result |
Parameters | Type | Description |
---|---|---|
label |
String |
The label printed before the debugging info. |