PHPackages                             xdebug/xdebug - 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. xdebug/xdebug

ActivePhp-ext-zend[Debugging &amp; Profiling](/categories/debugging)

xdebug/xdebug
=============

Xdebug is a debugging and productivity extension for PHP

3.5.1(3mo ago)3.4k94.9k—0.7%598[8 PRs](https://github.com/xdebug/xdebug/pulls)1Xdebug-1.03PHPPHP &gt;=8.0,&lt;8.6CI passing

Since May 31Pushed 2mo ago121 watchersCompare

[ Source](https://github.com/xdebug/xdebug)[ Packagist](https://packagist.org/packages/xdebug/xdebug)[ Fund](https://xdebug.org/support)[ GitHub Sponsors](https://github.com/derickr)[ RSS](/packages/xdebug-xdebug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (22)Used By (1)

Xdebug
======

[](#xdebug)

[![](https://github.com/xdebug/xdebug/actions/workflows/tests.yml/badge.svg)](https://github.com/xdebug/xdebug/actions/workflows/tests.yml)[![https://circleci.com/gh/xdebug/xdebug/tree/master.svg?style=svg](https://camo.githubusercontent.com/08200f429c65dc70117822d3a3c23c57c7f3e766bff771a798294dc26466e942/68747470733a2f2f636972636c6563692e636f6d2f67682f7864656275672f7864656275672f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/xdebug/xdebug)[![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua/)Xdebug is a debugging tool for PHP. It provides step-debugging and a whole range of development helpers, such as stack traces, a code profiler, features to dump the full execution of your script to a file, and more.

[![Repography logo](https://camo.githubusercontent.com/921db020d9f80cb7181c9a2f9acc3b072aa68dc419901faf6c38acbef70d7428/68747470733a2f2f696d616765732e7265706f6772617068792e636f6d2f6c6f676f2e737667)](https://repography.com) / Recent activity [![Time period](https://camo.githubusercontent.com/47c10e6ce81cfca76a0d274f52c68a7f12dfedf7ab737acccdf2b2160ee59c88/68747470733a2f2f696d616765732e7265706f6772617068792e636f6d2f302f7864656275672f7864656275672f726563656e742d61637469766974792f65663132393061633562666136373466303764636661346639313563653662335f62616467652e737667)](https://repography.com)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#--recent-activity-)

[![Timeline graph](https://camo.githubusercontent.com/09e45e0e88018d779da5380ed68f2c9282e90209fefdfb1ddc010fe84d337ed1/68747470733a2f2f696d616765732e7265706f6772617068792e636f6d2f302f7864656275672f7864656275672f726563656e742d61637469766974792f65663132393061633562666136373466303764636661346639313563653662335f74696d656c696e652e737667)](https://github.com/xdebug/xdebug/commits) [![Pull request status graph](https://camo.githubusercontent.com/3776f84238c0341a03493921da1bfb1ae3dcc3db088a89b0bf552423a1dde65d/68747470733a2f2f696d616765732e7265706f6772617068792e636f6d2f302f7864656275672f7864656275672f726563656e742d61637469766974792f65663132393061633562666136373466303764636661346639313563653662335f7072732e737667)](https://github.com/xdebug/xdebug/pulls) [![Trending topics](https://camo.githubusercontent.com/2872e0bf2572282c1c69605c4d858833bee987f35c9ee525c8f9ceb44ba9d38c/68747470733a2f2f696d616765732e7265706f6772617068792e636f6d2f302f7864656275672f7864656275672f726563656e742d61637469766974792f65663132393061633562666136373466303764636661346639313563653662335f776f7264732e737667)](https://github.com/xdebug/xdebug/commits) [![Top contributors](https://camo.githubusercontent.com/f0f016773814214b83176f0c6a8c11edf8afbed7856ca62d37cb517f35c53971/68747470733a2f2f696d616765732e7265706f6772617068792e636f6d2f302f7864656275672f7864656275672f726563656e742d61637469766974792f65663132393061633562666136373466303764636661346639313563653662335f75736572732e737667)](https://github.com/xdebug/xdebug/graphs/contributors)

Requirements
------------

[](#requirements)

Xdebug requires a [supported version](https://www.php.net/supported-versions.php)of PHP. For installation it requires the `pie` tool, unless your Linux distribution has an Xdebug package (most often: `php-xdebug`).

Installation
------------

[](#installation)

On most Linux distributions you can install Xdebug through [their package manager](https://xdebug.org/docs/install#linux).

You can also install Xdebug on Linux, macOS, and Windows, with the [PIE](https://github.com/php/pie?tab=readme-ov-file#using-pie---what-do-i-need-to-get-started)installer through `pie install xdebug/xdebug`.

For more extensive installation instructions, see the documentation at

Configuration
-------------

[](#configuration)

Most features in Xdebug have to be opted in into. Each feature has a specific opt-in. For example to use the [step debugger](https://xdebug.org/docs/remote) you need to set xdebug.remote\_enable=1 in your configuration file. The step debugger requires an IDE (client), of which there are many [available](https://xdebug.org/docs/remote#clients).

The documentation has instructions for each of Xdebug's features:  and a full list of [settings](https://xdebug.org/docs/all_settings) is also available there.

Contributing
------------

[](#contributing)

Xdebug is written in C, and extensive knowledge of PHP's internals is necessary to be able to contribute. Contributing guidance is available [separately](https://github.com/xdebug/xdebug/blob/master/CONTRIBUTING.rst).

Before you begin to contribute, please reach out first. Either through email (address at the bottom), an issue in the [issue tracker](https://bugs.xdebug.org) or preferably through IRC on Freenode's #xdebug channel.

Testing
-------

[](#testing)

If you are familiar with compiling PHP extension from source, have a local checkout of Xdebug's GitHub repository, and have compiled Xdebug in that directory following the instructions under [installation](https://xdebug.org/docs/install#source) you can run Xdebug's tests by running:

```
php run-xdebug-tests.php
```

The test framework requires that the PHP binary on the path has Xdebug loaded, with remote debugging enabled through xdebug.mode=debug. It is possible to skip remote debugging tests by exporting the SKIP\_DBGP\_TESTS=1 environment variable.

The SKIP\_UNPARALLEL\_TESTS=1 can be used to skip tests that can not run in parallel environments, and the SKIP\_SLOW\_TESTS=1 environment variable to skip slow tests. The OPCACHE environment variable can either be yes or no and controls whether the test framework enables or disables OpCache.

Licensing
---------

[](#licensing)

Xdebug is released under [The Xdebug License](https://github.com/xdebug/xdebug/blob/master/LICENSE), which is based on [The PHP License](https://github.com/php/php-src/blob/master/LICENSE). It is an Open Source license (though not explicitly endorsed by the Open Source Initiative).

Further Reading
---------------

[](#further-reading)

Xdebug has extensive documentation on its [website](https://xdebug.org/docs). There are over a hundred settings and many functions documented. Please have a look through the wealth of information that Xdebug can provide to make your every day development with PHP easier.

Support
-------

[](#support)

For questions regarding Xdebug, please use [StackOverflow](https://stackoverflow.com/questions/tagged/xdebug), and tag your question with xdebug.

You can also find ad-hoc and sporadic support on IRC: `freenode/#xdebug`. You can do that with your favourite client, or by using their [webchat](http://webchat.freenode.net/?channels=#xdebug).

If you think that you encountered a bug, please file a detailed bug report at . You are required to create an account, this is so that you can be contacted for additional information and to keep out spam.

Derick Rethans —

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community40

Growing community involvement

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.9% 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 ~43 days

Recently: every ~30 days

Total

15

Last Release

104d ago

PHP version history (2 changes)3.4.0alpha1PHP &gt;=8.0,&lt;8.5

3.5.0alpha1PHP &gt;=8.0,&lt;8.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/87eaea74e4be4e86084decfe79612a4fb7b3bd76718a54368a0fe8593de7873b?d=identicon)[derickr](/maintainers/derickr)

---

Top Contributors

[![derickr](https://avatars.githubusercontent.com/u/208074?v=4)](https://github.com/derickr "derickr (5953 commits)")[![mixedpuppy](https://avatars.githubusercontent.com/u/135926?v=4)](https://github.com/mixedpuppy "mixedpuppy (80 commits)")[![iliaal](https://avatars.githubusercontent.com/u/158724?v=4)](https://github.com/iliaal "iliaal (37 commits)")[![cmb69](https://avatars.githubusercontent.com/u/2306138?v=4)](https://github.com/cmb69 "cmb69 (29 commits)")[![allisterb](https://avatars.githubusercontent.com/u/11426372?v=4)](https://github.com/allisterb "allisterb (29 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (25 commits)")[![helly25](https://avatars.githubusercontent.com/u/6420169?v=4)](https://github.com/helly25 "helly25 (23 commits)")[![zobo](https://avatars.githubusercontent.com/u/2456026?v=4)](https://github.com/zobo "zobo (17 commits)")[![carlos-granados](https://avatars.githubusercontent.com/u/1383106?v=4)](https://github.com/carlos-granados "carlos-granados (10 commits)")[![mvorisek](https://avatars.githubusercontent.com/u/2228672?v=4)](https://github.com/mvorisek "mvorisek (8 commits)")[![krakjoe](https://avatars.githubusercontent.com/u/2236138?v=4)](https://github.com/krakjoe "krakjoe (7 commits)")[![patrickallaert](https://avatars.githubusercontent.com/u/195277?v=4)](https://github.com/patrickallaert "patrickallaert (7 commits)")[![mgdm](https://avatars.githubusercontent.com/u/71893?v=4)](https://github.com/mgdm "mgdm (5 commits)")[![devnexen](https://avatars.githubusercontent.com/u/4922778?v=4)](https://github.com/devnexen "devnexen (4 commits)")[![cedric-anne](https://avatars.githubusercontent.com/u/33253653?v=4)](https://github.com/cedric-anne "cedric-anne (4 commits)")[![eloraburns](https://avatars.githubusercontent.com/u/35443?v=4)](https://github.com/eloraburns "eloraburns (4 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (3 commits)")[![ndossche](https://avatars.githubusercontent.com/u/7771979?v=4)](https://github.com/ndossche "ndossche (3 commits)")[![petk](https://avatars.githubusercontent.com/u/1614009?v=4)](https://github.com/petk "petk (3 commits)")[![tony2001](https://avatars.githubusercontent.com/u/42386?v=4)](https://github.com/tony2001 "tony2001 (3 commits)")

### Embed Badge

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

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

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