2017 © Pedro Peláez
 

library debug

Debug - Common vars dump helpers and error handler for debugging purpose

image

redcatphp/debug

Debug - Common vars dump helpers and error handler for debugging purpose

  • Wednesday, May 24, 2017
  • by surikat
  • Repository
  • 2 Watchers
  • 4 Stars
  • 791 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

No longer actively maintained. I work now with NodeJS and I recommand you to take a look at di-ninja, (*1)

Debug

Error Handler

A simple error handler for direct debugging purpose via html output and targeting source code context of errors. It handle all errors including fatal errors and exceptions. It will start automatically in RedCat when your config set dev.php to true. `, (*2)

$errorHandler = new RedCat\Debug\ErrorHandler;
$errorHandler->handle();

Var Debug

This is a lighter and customizable alternative to native var_dump with syntax highlighting in html mode and showing the file and line call of debug function by dint of backtrace. ```php use Debug\Vars;, (*3)

//direct output
Vars::debug($variable,$strlen=1000,$width=25,$depth=10); // text output
Vars::debug_html($variable,$strlen=1000,$width=25,$depth=10); // html output
Vars::debugs($variable1,$variabe2 /* , ... */); // html output
Vars::dbugs($variable1,$variabe2 /* , ... */); // text output

//output the result manualy
echo Vars::debug_html_return($variable,$strlen=1000,$width=25);
echo Vars::debug_return($variable,$strlen=1000,$width=25);

There is some procedural function which call static function to Vars class. The procedural functions file will be included automatically when ErrorHandler launch handle., (*4)

dbug($var); //equivalent of Var::debug($var);
debug($var); //equivalent of Var::debug(_html$var);
dbugs($var,$var2); //equivalent of Var::dbugs($var,$var2);
debugs($var,$var2); //equivalent of Var::debugs($var,$var2);

The Versions

24/05 2017

dev-master

9999999-dev http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

24/05 2017

v1.7.3

1.7.3.0 http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

17/10 2016

v1.7.2

1.7.2.0 http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

17/10 2016

v1.7.1

1.7.1.0 http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

25/07 2016

v1.7.0

1.7.0.0 http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

27/06 2016

v1.6

1.6.0.0 http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

22/05 2016

v1.5

1.5.0.0 http://redcatphp.com/debug-php

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

04/12 2015

v1.4

1.4.0.0 https://github.com/redcatphp/Debug

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

08/11 2015

v1.3

1.3.0.0 https://github.com/redcatphp/Debug

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

22/10 2015

v1.2

1.2.0.0 https://github.com/surikat/Debug

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers

20/08 2015

v1.1

1.1.0.0 https://github.com/surikat/Debug

Debug - Common vars dump helpers and error handler for debugging purpose

  Sources   Download

LGPL-3.0+ CC0-1.0

The Requires

  • php >=5.4.0

 

debug dev error hanlder var dump helpers