debug()
The logLib.debug() system function logs debug messages to the console or a log file based on the logging framework configuration.
Syntax
logLib.debug(message STRING in)
logLib.debug(message STRING in, data ANY in)
- message
-
Input can be any variable or expression that is assignment compatible with the STRING type.
- data
-
Input can be any variable or expression that is assignment compatible with the ANY type.
Example
In the following example, the function logs debug messages to the console or a log file based on the logging framework configuration.
logLib.debug(“This is debug text”)
loglib.debug("data with debug {}", data);
Compatibility
| Platform | Issue |
|---|---|
| COBOL generation | The debug() function is not supported. |