Document toolboxDocument toolbox

(2024.2) Debugging Custom Logic

debug

The debug command outputs data to a log which is then displayed in the Debug tab/grid for the Custom Logic you are debugging.

debug(mixed $debug)

Parameters

$debug: The variable to be output on the debug tab.

Example: Basic Usage

In this example, the debug function is being called with different types of variables.

$array = [1,2,3,4]; $indexedArray = [ 'foo' =>'bar', 'bat' => 'baz' ]; $integer = 1234; $string = 'this is a string'; $float = 3.14159; $this->debug($array); $this->debug($indexedArray); $this->debug($integer); $this->debug($string); $this->debug($float);

Output on the Debug tab

image-20240912-020212.png