2017 © Pedro Peláez
 

library trace-debug

A little debugging tool. You can capture stack traces.

image

pedrotroller/trace-debug

A little debugging tool. You can capture stack traces.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

TRACE DEBUG

Scrutinizer Code Quality, (*1)

What is it ?

A simple library and a Symfony bundle. With it, you will be able to captule stacktraces and display them into the debug toolbar., (*2)

Installation (Symfony Bundle)

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
        );

        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // ...
            $bundles[] = new PedroTroller\TraceDebug\Bundle\TraceDebugBundle();
        }

        return $bundles;
    }
}

Usage

This library will add a new function : trace(). You just have to call this function and a stacktrace will be captured., (*3)

class SomeClass
{
    public function someFunction() {
        // ...
        trace();
        // ...
    }
}

And thats all, now, you will see a new button into the toolbar named Trace() with the number on stacktrace captured., (*4)

Capture multiple stacktrace from multiple places

If you want to capture stacktrace from differents places, it will be dificult to know which trace come from which place... So, you just have to give a name to the capture., (*5)

class SomeClass
{
    public function someFunction() {
        // ...
        trace('capture1');
        // ...
    }

    public function someOtherFunction() {
        // ...
        trace('capture2');
        // ...
    }
}

And so, the display will sort traces from the name of the capture., (*6)

The Versions

15/02 2017

dev-master

9999999-dev

A little debugging tool. You can capture stack traces.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug stacktrace trace dx

04/10 2015

v1.0.1

1.0.1.0

A little debugging tool. You can capture stack traces.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug stacktrace trace dx

04/10 2015

dev-fix/composer

dev-fix/composer

A little debugging tool. You can capture stack traces.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug stacktrace trace dx