MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / debugLog

Function debugLog

app/rcc/scripts/parser/js/modbus.js:129–132  ·  view source on GitHub ↗

* Emits a debug log message when CONFIG.debug is enabled.

(message)

Source from the content-addressed store, hash-verified

127 * Emits a debug log message when CONFIG.debug is enabled.
128 */
129function debugLog(message) {
130 if (CONFIG.debug)
131 console.log("[Modbus] " + message);
132}
133
134/**
135 * Returns the register config for the given index, with sensible defaults.

Callers 1

parseFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected