PHPackages                             macino/pdbg - 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. macino/pdbg

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

macino/pdbg
===========

PHP Debuging helper and benchmark tool

1.0.1(1y ago)06MITPHPPHP &gt;=8.1

Since Feb 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/macino/pdbg)[ Packagist](https://packagist.org/packages/macino/pdbg)[ RSS](/packages/macino-pdbg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PDBG - Php Debugger
===================

[](#pdbg---php-debugger)

Auhtor:Tomas MacikContact:Contents

- [References](#references)
    - [Instantination](#instantination)
        - [pdbg(), Pdbg::getInst(), \_p()](#pdbg-pdbg-getinst-p)
    - [Logging and dumping](#logging-and-dumping)
        - [log(msg), l(msg)](#log-msg-l-msg)
        - [point(\[desc\]), p(\[desc\])](#point-desc-p-desc)
        - [dump(var\[, desc\]), d(var\[, desc\])](#dump-var-desc-d-var-desc)
        - [hdump(var\[, desc\]), hd(var\[, desc)](#hdump-var-desc-hd-var-desc)
        - [hdigh()](#hdigh)
    - [Benchmarking](#benchmarking)
        - [bstart(\[desc\]), bs(\[desc\])](#bstart-desc-bs-desc)
        - [bench(), b()](#bench-b)
    - [Flushing the buffer](#flushing-the-buffer)
        - [flush(), fl()](#flush-fl)
        - [hflush(), hfl()](#hflush-hfl)
        - [fflush(\[append\]), ffl(\[append\])](#fflush-append-ffl-append)

[References](#id1)
------------------

[](#references)

### [Instantination](#id2)

[](#instantination)

#### [pdbg(), Pdbg::getInst(), \_p()](#id3)

[](#pdbg-pdbggetinst-_p)

Returns singleton instance of `pdbg` class.

### [Logging and dumping](#id4)

[](#logging-and-dumping)

#### [log(msg), l(msg)](#id5)

[](#logmsg-lmsg)

Append a message from `msg` to log buffer with timestamp prefix.

#### [point(\[desc\]), p(\[desc\])](#id6)

[](#pointdesc-pdesc)

Appends a check point message to log buffer. Description of check point will be added if present in `desc`.

#### [dump(var\[, desc\]), d(var\[, desc\])](#id7)

[](#dumpvar-desc-dvar-desc)

Append an exported variable to log buffer. `var_export` fce is used to get the exported content of variable. Description of dump will be added if present in `desc`.

#### [hdump(var\[, desc\]), hd(var\[, desc)](#id8)

[](#hdumpvar-desc-hdvar-desc)

Same as `dump`, but with syntax highlight in html. Improves readability in browsers but it worsen it in console output.

#### [hdigh()](#id9)

[](#hdigh)

As How Do I Get Here, prints a formatted backtrace to actual position including function itself. It does not dump the objects, only arguments of each function in trace.

### [Benchmarking](#id10)

[](#benchmarking)

Pdbg can provide multiple benchmarks. Bench marks have their own buffer, so by ending the last started benchmark will be ended. Benchmarsk are messaured in microsecond precission.

#### [bstart(\[desc\]), bs(\[desc\])](#id11)

[](#bstartdesc-bsdesc)

Starts a new bechmark and mark it to log buffer with description (default='-').

#### [bench(), b()](#id12)

[](#bench-b)

Ends the last started benchmark and mark it to log buffer with message containing the duration of the benchmark in miliseconds units.

### [Flushing the buffer](#id13)

[](#flushing-the-buffer)

#### [flush(), fl()](#id14)

[](#flush-fl)

Stops outputbuffer if present. Flushes the content of log buffer to stdout without any surrounding tags and dies. This is good for console debugging.

#### [hflush(), hfl()](#id15)

[](#hflush-hfl)

Same as `flush()`, but it uses `htmlentities` and `` tags to format output, so it would be more readable in html output.

#### [fflush(\[append\]), ffl(\[append\])](#id16)

[](#fflushappend-fflappend)

Flushes the content of log buffer to file `pdbg.log` without any formatting. If `append` is `true`, the content will be appended to the file. Otherwise the file will be overwritten with new content.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance42

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89e6e63d8bc1955654dbd1036ae7e5d59ec356544779c7f43b1ffbd3c295b421?d=identicon)[tomas.macik](/maintainers/tomas.macik)

---

Top Contributors

[![macino](https://avatars.githubusercontent.com/u/522323?v=4)](https://github.com/macino "macino (3 commits)")

### Embed Badge

![Health badge](/badges/macino-pdbg/health.svg)

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

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