logocomune/debug

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.1.0) of this package.

simple debugging tool which prints human-readable information about a variable.

1.1.0 2015-05-13 18:02 UTC

This package is not auto-updated.

Last update: 2020-08-21 19:59:47 UTC


README

This software is a simple debugging tool which prints human-readable information about a variable in HTML or pure text if the execution is from CLI mode.

Install

Install the latest version with composer require logocomune/debug

Alternatively, you can specify Debug as a dependency in your project’s existing composer.json file:

{
 "require-dev": {
    "logocomune/debug": "~1.1"
 }
}

Usage

Basic example:

// debug() or d() just display a variable
debug(['test'=>1,'d'=>'ok']);

// debug and exit
de(['test'=>1,'d'=>'ok']);

Available features:

// Disable debug
\Logocomune\Debug\Debug::disable();

// Enable backtrace
\Logocomune\Debug::backtrace();

// Disable backtrace
\Logocomune\Debug::backtraceOff();

// Dump a variable with

// print_r (default mode)
\Logocomune\Debug::renderAsPrintR();

// var_dump
\Logocomune\Debug::renderAsVarDump();


// var_export
\Logocomune\Debug::renderAsVarExport();


// Symfony mechanism for exploring and dumping PHP variables
\Logocomune\Debug::renderAsSymVarDump();