Skip to main content
Skip table of contents

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.

PHP
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.

PHP
$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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.