Get support for PedroTroller/TraceDebug

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

PedroTroller/TraceDebug

#TRACE DEBUG

Scrutinizer Code Quality

##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.

##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.

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.

##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.

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.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2