PHPackages                             redcatphp/debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. redcatphp/debug

AbandonedArchivedLibrary[Debugging &amp; Profiling](/categories/debugging)

redcatphp/debug
===============

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

v1.7.3(8y ago)48183LGPL-3.0+PHPPHP &gt;=5.4.0

Since Aug 20Pushed 7y ago2 watchersCompare

[ Source](https://github.com/redcatphp/debug)[ Packagist](https://packagist.org/packages/redcatphp/debug)[ Docs](http://redcatphp.com/debug-php)[ RSS](/packages/redcatphp-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (11)Used By (3)

**No longer actively maintained. I work now with NodeJS and I recommand you to take a look at [di-ninja](https://github.com/di-ninja/di-ninja)**

Debug
=====

[](#debug)

Error Handler
-------------

[](#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. `

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

Var Debug
---------

[](#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;

```
//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*.

```
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);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~71 days

Recently: every ~82 days

Total

10

Last Release

3282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/085e64547ac1b32cc49f4f6ba5950c35f593f79d8523e2379869ab512eb8a725?d=identicon)[surikat](/maintainers/surikat)

---

Top Contributors

[![devthejo](https://avatars.githubusercontent.com/u/6781828?v=4)](https://github.com/devthejo "devthejo (49 commits)")

---

Tags

devdebugError Hanldervar dump helpers

### Embed Badge

![Health badge](/badges/redcatphp-debug/health.svg)

```
[![Health](https://phpackages.com/badges/redcatphp-debug/health.svg)](https://phpackages.com/packages/redcatphp-debug)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.2k124.3M624](/packages/barryvdh-laravel-debugbar)[symfony/var-dumper

Provides mechanisms for walking through any arbitrary PHP variable

7.4k855.5M8.0k](/packages/symfony-var-dumper)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k149.7M969](/packages/symfony-web-profiler-bundle)[kint-php/kint

Kint - Advanced PHP dumper

2.8k19.3M283](/packages/kint-php-kint)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
