Debug component provides a simple methods for debugging variables, objects, arrays, etc by outputting information to the display.

v1.1.0 2018-07-10 10:32 UTC

This package is auto-updated.

Last update: 2024-10-25 10:47:18 UTC


README

version MIT License

Debug component provides a simple methods for debugging variables, objects, arrays, etc by outputting information to the display.

Installation

composer require flextype-components/debug

Usage

use Flextype\Component\Debug\Debug;

Save current time for current point

Debug::elapsedTimeSetPoint('point_name');

Get elapsed time for current point

echo Debug::elapsedTime('point_name');

Save current memory for current point

Debug::memoryUsageSetPoint('point_name');

Get memory usage for current point

echo Debug::memoryUsage('point_name');

Print the variable $data and exit if exit = true

Debug::dump($data);

Prints a list of the configuration settings read from php.ini

Debug::phpini();

Prints a list of all currently loaded PHP extensions.

Debug::extensions();

Prints a list of all currently declared constants.

Debug::constants();

Prints a list of all currently declared functions.

Debug::functions();

Prints a list of all currently included (or required) files.

Debug::includes();

Prints a list of all currently declared interfaces.

Debug::interfaces();

Prints a list of all currently declared classes.

Debug::classes();

License

See LICENSE