PHPackages                             pedrotroller/trace-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. pedrotroller/trace-debug

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

pedrotroller/trace-debug
========================

A little debugging tool. You can capture stack traces.

v1.0.1(10y ago)014.1kMITPHP

Since Oct 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/PedroTroller/TraceDebug)[ Packagist](https://packagist.org/packages/pedrotroller/trace-debug)[ RSS](/packages/pedrotroller-trace-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

\#TRACE DEBUG

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/aec0ffd06e2cde3f28b1ea2598d9330757dee50e39eb2f101d84be6325a4c58b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f506564726f54726f6c6c65722f547261636544656275672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PedroTroller/TraceDebug/?branch=master)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

3879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30a9dae2aee580e835b4f60b16a1ac2cbc72cf6524a345cdae5a64e9c6ac75a6?d=identicon)[PedroTroller](/maintainers/PedroTroller)

---

Top Contributors

[![PedroTroller](https://avatars.githubusercontent.com/u/1766827?v=4)](https://github.com/PedroTroller "PedroTroller (8 commits)")

---

Tags

debugtracestacktraceDX

### Embed Badge

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

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

###  Alternatives

[symfony/debug-bundle

Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework

2.4k115.8M824](/packages/symfony-debug-bundle)[vasek-purchart/tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

1177.6k](/packages/vasek-purchart-tracy-blue-screen-bundle)[kuria/error

Makes handling and debugging PHP errors suck less

1920.0k2](/packages/kuria-error)[symfony/ai-mate

AI development assistant MCP server for Symfony projects

1624.9k11](/packages/symfony-ai-mate)

PHPackages © 2026

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