/
(2024.2) Debugging Custom Logic

(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

 

Related content

Debugging Custom Logic
Debugging Custom Logic
More like this
(v1) Allowed Functions in Custom Logic
(v1) Allowed Functions in Custom Logic
More like this
(v1) .Allowed Functions in Custom Logic v2022.2
(v1) .Allowed Functions in Custom Logic v2022.2
More like this
(v1) .Allowed Functions in Custom Logic v2020.4
(v1) .Allowed Functions in Custom Logic v2020.4
More like this
(2024.1) Allowed Functions in Custom Logic
(2024.1) Allowed Functions in Custom Logic
More like this
Validation: Errors and Warnings
Validation: Errors and Warnings
More like this