Xdebug

Open source

A PHP extension that adds step debugging, improved error output, tracing, profiling and code coverage analysis to PHP development.

Open-source alternative to

xdebug.org
Xdebug homepage screenshot
GitHub stars
3.4k
Last 30 days
+3(+0%)
Last commit
9 days ago
Repository age
15 years
Version
3.6.0alpha1
Licence
Custom
Self-hosted
Yes

About Xdebug

Xdebug is an extension for PHP that adds several development tools in one package: step debugging from an IDE or editor, improved error reporting, tracing, profiling and code coverage analysis. It is distributed from xdebug.org, and the project asks people who find it useful to support it.

Step debugging lets a developer move through code in an IDE or editor while the script runs. Error reporting gains an improved var_dump() function and stack traces for notices, warnings, errors and exceptions that highlight the path to the error. Tracing writes every function call with its arguments and location to disk.

Profiling output is read with visualisation tools to find bottlenecks, and code coverage shows which parts of a code base execute when PHPUnit tests run. A separate service, Xdebug Cloud, is a Proxy-as-a-Service that deals with networking problems, for example developers sharing a development server on a private network while working remotely.

Key features

  • Step debugging from an IDE or editor
  • Improved var_dump and stack traces for errors
  • Tracing of every function call to disk
  • Profiling to find bottlenecks
  • Code coverage during PHPUnit runs
  • Xdebug Cloud proxy for networking

Good fit for

  • Stepping through PHP code in an IDE
  • Finding slow code with profiling
  • Measuring test coverage with PHPUnit
Built with
PHP tools
Tags
php
debugger
profiler
code coverage
tracing
phpunit

Xdebug: questions and answers

What is Xdebug used for?
Xdebug is a PHP extension that adds step debugging, improved error output, tracing, profiling and code coverage analysis to PHP development. It is a good fit for stepping through PHP code in an IDE, finding slow code with profiling and measuring test coverage with PHPUnit.
Is Xdebug open source?
Yes. Xdebug is open source under a custom licence. Its source code is on GitHub at xdebug/xdebug and is written mainly in PHP.
Is Xdebug free?
Yes. Xdebug is open source, so the software itself is free to use under the terms of its own licence.
Can I self-host Xdebug?
Yes. Xdebug can be self-hosted on your own server or infrastructure.
What is Xdebug an alternative to?
Xdebug is an open-source alternative to Blackfire. Other open-source alternatives to Blackfire include SigNoz, Jaeger and Prometheus.
Is Xdebug actively maintained?
Yes. The most recent commit to Xdebug was on 4 November 2026, and the latest release is 3.6.0alpha1, published on 8 September 2026. The project has 3.4k stars on GitHub, with 3 added in the last 30 days.

Open-source alternatives to Xdebug

See all

SaaS alternatives to Xdebug

See all