Documentation
Debug
The Debug helper is a simple class for debugging variables, objects, arrays, etc by outputting information to the display.
Methods
elapsedTimeSetPoint(string $point_name)
Save current time for current point.
Debug::elapsedTimeSetPoint('point_name');
elapsedTime(string $point_name)
Get elapsed time for current point.
echo Debug::elapsedTime('point_name');
memoryUsageSetPoint(string $point_name)
Save current memory for current point.
Debug::memoryUsageSetPoint('point_name');
memoryUsage(string $point_name)
Get memory usage for current point.
echo Debug::memoryUsage('point_name');
dump(string $data, [boolean $exit = false])
Print the variable $data and exit if exit = true
Debug::dump($data);