2017 © Pedro Peláez
 

utility debug

Provides a small package of debugging utilites, especially a better var_dump-alternative

image

jas/debug

Provides a small package of debugging utilites, especially a better var_dump-alternative

  • Sunday, July 21, 2013
  • by possi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

jas Debug-Package

Provides a small package of debugging utilites, especially a better var_dump-alternative, (*1)

Installation:

Add this line to your composer.json "require" section:, (*2)

composer.json

    "require": {
       ...
       "jas/debug": "*"

Usage

Even without xdebug you now can output a smart display of any PHP-Value., (*3)

jas\debug\Dumper::dump($var/*, ...*/);

You can pass as much arguments to the Dump-Method as you like. By default it outputs an HTML-Version of the PHP-Object. When you pass an int bitmask (see Dumper-Constants) as last parameter, you are able to get a Text-Only version (with or without <pre> around) as output or returned., (*4)

On-The-Fly usage

You may use this package on-the-fly via this Gist: https://gist.github.com/possi/5792653, (*5)

eval('?'.'>'.file_get_contents('https://gist.github.com/possi/5792653/raw'));
jas_dump($this, new stdClass(), array('foo' => 'bar'));

Planned Features

  • Test special dumper for SugarCRMs SugarBean
  • Add the ErrorHandler
  • especially with BackTrace-printer

The Versions

21/07 2013

dev-master

9999999-dev https://github.com/possi/jas_debug

Provides a small package of debugging utilites, especially a better var_dump-alternative

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

debug var_dump