debug

[ Funktion ]

function debug(message: string | any): void;

Issues a debug message on the browser console if the constant TCHMI_CONSOLE_LOG_LEVEL is greater than or equal to 4.

Parameter

Name

Type

Description

message

Version 1.8

string

Version 1.10

string, any

This change is backward compatible.

The message text that is displayed in the browser console.

From version 1.10, if a data type other than string is passed, this value is no longer converted into a string and forwarded directly to the browser console.

This makes it possible to use browser-specific data type representations.

This is especially useful for complex values such as objects or arrays. Most current browsers offer the option to expand object properties.

Return value

Type

Description

void

No return value

debug 1:

Available from 1.8

Sample - JavaScript

TcHmi.Log.debug('My debug text…');