Skip to content

console

The host-provided diagnostic console available to every script.

1
const console;

Capabilities

Properties

  • console.memory: Browser-specific memory information. It is not provided by workflow scripts.

Methods

  • console.assert: Logs an error only when condition is false.
  • console.clear: Clears browser console output. Server workflow scripts accept the call but retain no console buffer.
  • console.count: Increments and displays a counter identified by label. Browser form scripts only.
  • console.countReset: Resets the counter identified by label. Browser form scripts only.
  • console.debug: Writes a diagnostic/debug entry.
  • console.error: Writes an error entry.
  • console.group: Starts a logical output group. Server workflow scripts write the formatted group title as one debug entry; no nesting is retained.
  • console.groupCollapsed: Starts a collapsed logical output group. Server workflow scripts behave the same as group.
  • console.groupEnd: Ends the current output group. It has no additional server-side output.
  • console.info: Writes an informational entry.
  • console.log: Writes a diagnostic/debug entry.
  • console.time: Starts a timer identified by label. Server workflow scripts keep the timer only for the life of the current script engine.
  • console.timeEnd: Stops and reports a timer identified by label as a debug entry. Calling it for an unknown label has no effect in workflow scripts.
  • console.timeLog: Reports the elapsed time for a timer without stopping it. Browser form scripts only.
  • console.timeStamp: Adds a timestamp to the browser performance timeline when supported. Browser form scripts only.
  • console.trace: Writes a stack trace. Browser form scripts only.
  • console.warn: Writes a warning entry.