2017 © Pedro Peláez
 

library debug

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

image

logocomune/debug

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

  • Wednesday, May 13, 2015
  • by logocomune
  • Repository
  • 1 Watchers
  • 1 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Debug tool

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., (*1)

Install

Install the latest version with composer require logocomune/debug, (*2)

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

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

Usage

Basic example:, (*4)

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

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

Available features:, (*5)

// 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();


The Versions

13/05 2015

dev-master

9999999-dev

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

  Sources   Download

The Requires

 

debug cli html debugging print_r var_dump var_export

13/05 2015

1.1.0

1.1.0.0

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

  Sources   Download

The Requires

 

debug cli html debugging print_r var_dump var_export

11/05 2015

1.0.0

1.0.0.0

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

  Sources   Download

The Requires

  • php >=5.3.3

 

debug cli html debugging print_r var_dump var_export