PHPackages                             tommy/debug-info - 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. tommy/debug-info

AbandonedArchivedMagento-module[Debugging &amp; Profiling](/categories/debugging)

tommy/debug-info
================

Magento module for convenient debugging and performance information

24PHP

Since Apr 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tomfun/debugInfo)[ Packagist](https://packagist.org/packages/tommy/debug-info)[ RSS](/packages/tommy-debug-info/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

debugInfo - lightweight module for Magento
==========================================

[](#debuginfo---lightweight-module-for-magento)

### Alternative way to control your web application: debug, dump variables and measure performance

[](#alternative-way-to-control-your-web-application-debug-dump-variables-and-measure-performance)

If you tired use some combination like this

```
var_dump($some);
die();
```

And want some more comfortable, or you can`t use debugger, and still want to see some intermediate data when using Ajax, this for You.

### Installation

[](#installation)

- Copy all files except docs to your magento project
- Login (and maybe relogin) into admin panel
- Configure this in your own way (based on your security needs or habits) Magento Admin -&gt; System -&gt; Configuration -&gt; TOMMY -&gt; Debug Info -&gt; Custom Debug Info Settings

### Usage

[](#usage)

#### echo

[](#echo)

In your code put some like this:

```
Tommy_DebugInfo_Helper_Data::getMe()->addDebugOutput('Message section', 'My debug mess :)');
```

Then go to web browser and you`ll see there [![Image of output](https://github.com/tomfun/debugInfo/raw/master/docs/imgs/80fb3b2a91.jpg)](https://github.com/tomfun/debugInfo/blob/master/docs/imgs/80fb3b2a91.jpg)

In this example I use this configuration for module: "Force Include output, if get this param" set to "?showInfog" in admin section

#### var\_dump

[](#var_dump)

```
$performance = Tommy_DebugInfo_Helper_Data::getMe();
$someArrayOrObject = new stdClass();
$someArrayOrObject->name='Home';
$someArrayOrObject->status=1;
$performance->addDirectOutput($someArrayOrObject, 'someArrayOrObject');
```

You`ll see in Chrome console your object [![Image of output](https://github.com/tomfun/debugInfo/raw/master/docs/imgs/0b63dd7d9d.jpg)](https://github.com/tomfun/debugInfo/blob/master/docs/imgs/0b63dd7d9d.jpg)

#### Time measure

[](#time-measure)

```
$performance->addPerformanceLog('sleep 5 sec');
sleep(5);
$performance->addPerformanceLog('sleep 5 sec', 'finish');
```

You`ll see in browser your data If you want some intermediate data for your large process

```
$performance->addPerformanceLog('sleep 5 sec');
sleep(3);
$performance->addPerformanceLog('sleep 5 sec', 'breakpoint');
sleep(2);
$performance->addPerformanceLog('sleep 5 sec', 'finish');
```

[![Image of output](https://github.com/tomfun/debugInfo/raw/master/docs/imgs/c0a66ccd61.jpg)](https://github.com/tomfun/debugInfo/blob/master/docs/imgs/c0a66ccd61.jpg)

#### Compare cached blocks with real render

[](#compare-cached-blocks-with-real-render)

To check *block caching is correct*, you can use option in config part

### Work modes

[](#work-modes)

- Frontend
- Special url postfix
- Session

#### Frontend

[](#frontend)

It works like described in screen outputs above. You see data in the bottom of browser page. This mode not recomended for production environment.

#### Special url postfix

[](#special-url-postfix)

Like "Frontend" but use additional get parameter. Without this parameter we`ll get default behavior for pages.

#### Session

[](#session)

In browser special page: * your.web.site/debug\_info*you`ll see list of connection (requests) to site. Browse to link you need then see all data like in "Frontend" mode. This mode require magento cache, there placed all data, you can clear magento cache this lead to clear debugInfo`s data [![Image of output](https://github.com/tomfun/debugInfo/raw/master/docs/imgs/aef08ad78e.png)](https://github.com/tomfun/debugInfo/blob/master/docs/imgs/aef08ad78e.png)[Result is](https://github.com/tomfun/debugInfo/blob/master/docs/imgs/54a12c01f9.jpg)

### Requirements

[](#requirements)

- Magento (tested only in 1.9)
- jQuery (and set path to it in cofiguration, tested in 1.10\*)
- Browser (tested in Chrome and Mozilla)
- PHP (tested in 5.5, must work in 5.3)

#### Recomend

[](#recomend)

I like use the module with [Cache Viewer](https://github.com/meanbee/Meanbee_CacheViewer), also I offer use development environment in Magento:

```
server {
# .....
    server_name site.test www.site.test;
    root /var/www/site;
    location / {
        try_files $uri /index.php$is_args$args;
    }
# .....
    location ~ \.php$ {
       include fastcgi_common;
       fastcgi_param  MAGE_IS_DEVELOPER_MODE 1; # enable dev mode
    }
}

```

\- nginx,

```

#
	ServerName site.test
	ServerAlias www.site.test
	SetEnv MAGE_IS_DEVELOPER_MODE 1  # enable dev mode
#.......

```

\- apache2; and in index.php type this

```
//.....
require_once $mageFilename;
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
    Mage::setIsDeveloperMode(true);
    Varien_Profiler::enable(); // from profiler debugInfo get data
    ini_set('display_errors', 1);
}
//.....
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6527e7289f517fbe12de895fde76e2fb2eead8559b676e2be5f9e3c00a6cd22?d=identicon)[tomfun1990@gmail.com](/maintainers/tomfun1990@gmail.com)

---

Top Contributors

[![tomfun](https://avatars.githubusercontent.com/u/5002775?v=4)](https://github.com/tomfun "tomfun (31 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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